A Database Error Occurred

Error Number: 1064

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 'ORDER BY rand() LIMIT 2' at line 4

SELECT * FROM (tbl_artikel_category) WHERE `posisi` = 'main' and id_cat <> 23 and id_cat <> ORDER BY rand() LIMIT 2

Filename: /home/k9823746/public_html/models/articles.php

Line Number: 11