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 'and package.id=package_status_link.package_id and package_status_link.statu' at line 4

select package.id as package_id,package.package_title,package.project_start_time as start_time, package_status.name from package,package_owner,package_status,package_status_link where package.id=package_owner.package_id and package_owner.user_id= and package.id=package_status_link.package_id and package_status_link.status_id=package_status.id and package_status.name in('Open')