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 (18652,45561,17703,17335,44869,44894,44671,17981,13988,44863,18279,44775,44866,43800,17009,18894,17351,5388,24412,44870,18446,45051,45517,17237,44856,18648,44768,18286,45180,45516,6609,44836,5410,30986,3883,45042,16885,17527,24441,39676,8753,45043,14402,17839,44854,44739,45567,18688,44687,14622,17755,45421,5993,17848,44762,44865,44849,44767,18981,16935,18996,45177,28313,18301,31354,44873,18719,45286,17904,19057)
Unknown column 'np.person' in 'where clause'