1064: SELECT web.id,web.categoryid,web.title,web.ratebyhit,web.file,wc.slug from web LEFT JOIN category wc on web.categoryid=wc.id WHERE web.id AND web.categoryid= ORDER BY (web.id) desc limit 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 'ORDER BY (web.id) desc limit 20' at line 3