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 (30986,13988,24412,44762,9341,44878,14402,44767,44766,17904,45051,17835,6782,44671,18286,18446,28313,17092,45262,18279,44870,8753,18648,18894,44868,45072,44855,45518,44866,17114,4765,24438,17527,44884,17335,45277,45346,3883,18652,44848,45042,18185,44687,24441,44863,5388,43800,17981,18237,44531,44854,44711,44865,13,44669,44867,18301,18900,17848,45517,44875,44894,17556,45180,3,44856,44689,19057,6609,39676)
Unknown column 'np.person' in 'where clause'