An Error Was Encountered

Error Number: 1064

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 rand() LIMIT 1' at line 1

SELECT * FROM tbl_quotes_detail WHERE published='y' AND language_id= ORDER BY rand() LIMIT 1