Ошибка базы данных WordPress: [Not unique table/alias: 'cz_postmeta']SELECT SQL_CALC_FOUND_ROWS cz_posts.ID FROM cz_posts INNER JOIN cz_postmeta ON ( cz_posts.ID = cz_postmeta.post_id ) INNER JOIN cz_st_hotel as tb ON cz_posts.ID = tb.post_id INNER JOIN cz_postmeta ON (cz_posts.ID = cz_postmeta.post_id) WHERE 1=1 AND (
cz_postmeta.meta_key = 'is_featured'
) AND cz_posts.post_type = 'st_hotel' AND (cz_posts.post_status = 'publish') AND cz_posts.ID IN
(
SELECT ID FROM
(
SELECT meta1.meta_value as ID
FROM cz_postsINNER JOIN cz_postmeta as meta1 ON cz_posts.ID = meta1.post_id and meta1.meta_key='room_parent'
WHERE 1=1
AND cz_posts.post_type = 'hotel_room'
GROUP BY meta1.meta_value
) as ids
) GROUP BY cz_posts.IDcz_posts.ID ORDER BY cz_postmeta.meta_value DESC LIMIT 0, 20
+38 (044) 22 800 10 +38 (067) 54 848 16