Популярне за місяць

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND wtt.term_id = 212' at line 5]
SELECT DISTINCT wp.* from wp_posts wp LEFT JOIN wp_term_relationships wtr ON wp.ID = wtr.object_id LEFT JOIN wp_term_taxonomy wtt ON wtr.term_taxonomy_id = wtt.term_taxonomy_id LEFT JOIN wp_postmeta wpm ON wpm.post_id = wp.ID WHERE YEAR(wp.post_date) = AND wtt.term_id = 212

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND wtt.term_id = 212 ORDER BY wp.post_date DESC LIMIT 0, 15' at line 5]
SELECT DISTINCT wp.* from wp_posts wp LEFT JOIN wp_term_relationships wtr ON wp.ID = wtr.object_id LEFT JOIN wp_term_taxonomy wtt ON wtr.term_taxonomy_id = wtt.term_taxonomy_id LEFT JOIN wp_postmeta wpm ON wpm.post_id = wp.ID WHERE YEAR(wp.post_date) = AND wtt.term_id = 212 ORDER BY wp.post_date DESC LIMIT 0, 15;