mysqli_error -> 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 'AND s.tid=c.id AND s.type='category'' at line 1 @query -> SELECT c.title, s.link FROM categories c, seolink s WHERE c.id= AND s.tid=c.id AND s.type='category'