SELECT ID from wp_terms t left join wp_term_taxonomy tx on ( t.term_id = tx.term_id ) left join wp_term_relationships tr on ( tx.term_taxonomy_id = tr.term_taxonomy_id ) left join wp_posts p on ( tr.object_id = p.ID ) where taxonomy = 'category' and slug = 'promocoes/zattini.com.br' and post_status = 'publish' order by p.post_date desc limit -10, 10
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10, 10' at line 6