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 p.ID != 1078
AND p.post_status = 'publish'
AND p.post_date_...' at line 6]
SELECT p.*, count(tr.object_id) as count
FROM wp_term_taxonomy AS tt, wp_term_relationships AS tr, wp_posts AS p
WHERE tt.taxonomy ='post_tag'
AND tt.term_taxonomy_id = tr.term_taxonomy_id
AND tr.object_id = p.ID
AND tt.term_id IN ()
AND p.ID != 1078
AND p.post_status = 'publish'
AND p.post_date_gmt < NOW()
GROUP BY tr.object_id
ORDER BY count DESC, p.post_date_gmt DESC
LIMIT 5;