SELECT tbl_r_section_msg.*, tbl_r_section_mapping.fld_module_id, tbl_r_section_mapping.fld_module_type_id FROM tbl_r_section_msg, tbl_r_section_mapping WHERE tbl_r_section_msg.fld_rs_msg_id = tbl_r_section_mapping.fld_rs_msg_id and fld_enable = 1 and fld_module_id = 268/photos order by fld_rs_msg_id desc ::: Unknown column 'photos' in 'where clause'