A Database Error Occurred

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 A.product_id desc' at line 1

SELECT A.*,B.company_name FROM t_product A LEFT JOIN vendor_details B ON A.vendor_id = B.user_id WHERE A.deleted_flag = 0 AND A.vendor_id = order by A.product_id desc

Filename: models/Common_Model.php

Line Number: 283