2 Can't do query_news1: SELECT * FROM tmpl_news WHERE tmpl_news_sld = 'sammardenchia' AND tmpl_news_tld = 'it' AND tmpl_page = 'news1' ORDER BY tmpl_data DESC, tmpl_testo2, tmpl_titolo 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 1