Agriturismo in Primo Piano

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 'ORDER BY RAND() LIMIT 0 , 14' at line 1
Whole query: SELECT cus.customers_id FROM customers AS cus INNER JOIN packages_to_customers AS p2c ON cus.customers_id=p2c.customers_id WHERE cus.customers_status='1' AND p2c.packages_to_customers_status='1' AND cus.customers_sponsor='0' AND cus.customers_id <> ORDER BY RAND() LIMIT 0 , 14