SELECT * FROM links LEFT JOIN links_cat ON (links.lcat = links_cat.lcat) WHERE links_cat.categorie='Persoonlijke Hondenpagina's' ORDER BY RAND()
Invalid query: 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 's' ORDER BY RAND()' at line 4