MySQL Error Occurred

Error Message:
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 15' at line 1

SELECT * from cubecart_brands where status='1' and deg_id!= order by rand() LIMIT 15