select t.*,c.nev letrenev,u.login letrelogin,l.nev lastnev,b.login lastlogin from forumtema t,AMIGAMAIN.cimek c,AMIGAMAIN.users u,AMIGAMAIN.cimek l,AMIGAMAIN.users b where c.userid=t.bevitid and u.userid=t.bevitid and l.userid=t.lastbevitid and b.userid=t.lastbevitid and t.pub='Y'order by t.lastbevitdat asc limit -19,20
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 '-19,20' at line 1
/index.php