Message: Unknown column 'photos.assignment' in 'where clause'
SQL: SELECT photos.*, users.first_name, users.last_name, users.name, users.title FROM photos JOIN users ON users.id = photos.user_id WHERE photos.content_type = 'product' AND photos.target_id = '13' AND photos.assignment IN ('all','ts') AND photos.is_approved = 1 ORDER BY photos.time DESC