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 (18446,44687,17771,6782,9341,44775,18427,37057,17527,16935,17755,14622,3883,18650,4686,44762,17278,13425,43800,45346,17835,28530,5388,18900,17009,45262,44870,13,44884,17981,17351,45072,44863,44861,5410,44640,14402,44674,45561,17114,18719,18286,8753,44866,44856,45043,18996,44837,44849,45517,44767,18301,4765,22509,44854,45177,17492,44765,18794,44685,45229,44865,17335,45421,17601,44835,19057,5993,45516,3)
Unknown column 'np.person' in 'where clause'