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 (44861,24412,44865,45042,18279,13,44856,44762,44867,17335,44764,18353,44711,3,45277,45229,44873,14622,44765,44866,44884,17278,17114,44531,5388,6862,17092,17703,4765,24438,44685,45515,37057,18430,36472,18719,44869,44853,13922,5410,9341,17009,18981,44845,18301,17556,5993,18185,17848,44739,45286,28530,44878,44640,44766,44849,17492,18894,10402,18794,44863,18427,30986,45043,45262,44669,17351,44671,30135,44854)
Unknown column 'np.person' in 'where clause'