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 '-12,12' at line 7SELECT SQL_CALC_FOUND_ROWS id, title, letrehozva, lead, image FROM news WHERE visible = 1 AND tipus = '0' AND ( timer_start = '0000-00-00' OR timer_start <= NOW() ) AND ( timer_end = '0000-00-00' OR timer_end >= NOW() ) ORDER BY letrehozva DESC LIMIT -12,12