A Database Error Occurred

Error Number: 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 '' at line 6

SELECT *,u.*,u.phone as default_phone FROM users u LEFT JOIN user_address ua ON u.user_id = ua.user_id AND ua.is_default = 1 WHERE u.user_id=

Filename: models/Usermodel.php

Line Number: 31