What is wrong in the following query:
SELECT * FROM forms
LEFT JOIN form_fields ON forms.id = form_field.parent_id
LEFT JOIN form_options ON form_field.id = form_options.parent_id
WHERE forms.name = activities
MySQL says 'unknown column 'activities'' where obviously forms.name should be seen as column name
I think you're just missing the quotes, try this:
SELECT * FROM forms
LEFT JOIN form_fields ON forms.id = form_field.parent_id
LEFT JOIN form_options ON form_field.id = form_options.parent_id
WHERE forms.name = 'activities'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.