Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (36472,44766,44853,6862,44739,6782,44865,16885,39676,44851,18286,44685,44767,4686,17756,45286,17755,18894,44837,44870,3,17839,45229,18279,17335,44671,45042,14402,17981,18648,4765,5993,18652,44669,45043,8753,17114,43800,13425,45072,5410,17904,44640,44775,44866,18996,10402,18900,45421,24438,24412,18446,31354,14622,5259,45567,44855,44868,18572,44878,18301,18981,6609,45180,19057,18353,32454,44836,44689,44858)
Unknown column 'np.person' in 'where clause'