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 ticket_section_link.ticket_id = ticket.id and ' at line 7

select ticket.title as title, ticket.id as tid, ticket.date_time as date_time, ticket_section.section_name as section_name, ticket_status.status as ticket_status from ticket,ticket_section,ticket_section_link,ticket_status,ticket_status_link where ticket.user_id = and ticket_section_link.ticket_id = ticket.id and ticket_section_link.section_id = ticket_section.id and ticket_status_link.ticket_id = ticket.id and ticket_status_link.status_id = ticket_status.id and ticket_status.status ='Not Answered'