I use codeigniter to develop a site. I tried to join multiple tables and got the following error.
Database Error Occurred Error Number: 1064
You have an error in the SQL syntax; check the manual corresponding to the MariaDB server version for the correct syntax to use next to it) ORDER BY table1. valueASC 'on line 4
SELECT `table1`.* FROM `table1` LEFT JOIN `table2` ON `table2`.`id`=`table1`.`id` WHERE `table1`.`p_id` IN() ORDER BY `table1`.`value` ASC
File Name: C: /xampp/htdocs/limca/system/database/DB_driver.php
Line Number: 691
How to solve this error?
source
share