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 (44878,18427,30986,18572,17848,14622,44640,43800,17755,44856,36472,18981,44884,13,44858,45517,8753,14402,6609,44689,5388,18042,45346,44765,45051,44854,45567,44745,17904,30963,18648,18301,6862,17335,17771,24412,17527,3,17114,18446,19078,44762,17839,6782,44868,18794,13988,32454,45515,44674,18353,17601,22509,30135,44869,44837,44867,17835,44671,45421,44766,44875,17981,44739,16935,17092,44687,17237,44768,45177)
Unknown column 'np.person' in 'where clause'