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 (44865,45517,17835,44854,18894,44711,6875,17351,44848,17237,44685,44851,17771,44856,18688,34194,18719,45180,44858,18648,28313,44669,44765,44855,45072,10402,5410,18427,44835,45262,30135,4686,17527,36472,18279,6609,44866,17492,16935,22509,17335,44674,24441,24411,39676,8753,17755,44762,17601,44671,44867,45515,44861,6782,44531,3,44768,17278,5993,44767,45286,18650,44764,13988,45177,18042,18652,18572,17848,16885)
Unknown column 'np.person' in 'where clause'