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 '' at line 5

SELECT full_name, email, contact_number, address FROM tbl_users LEFT JOIN tbl_user_details ON tbl_users.user_id = tbl_user_details.user_id LEFT JOIN tbl_file_attachments AS file_attachments ON tbl_users.user_id = file_attachments.source_ref_id AND file_attachments.attachment_type = 'profile_photo' WHERE tbl_users.user_id =

Filename: models/MUser.php

Line Number: 392