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 (5388,17527,37267,44863,45421,18301,18185,24411,13,44884,44853,17278,30986,18794,24438,44671,5993,24441,44858,45072,44851,18172,14622,45517,36472,45515,17492,44687,17835,44856,44768,45277,17092,44861,44764,3,18353,17839,17114,16935,44870,44685,44848,45042,6782,45262,45051,44865,22509,44640,45180,17703,44867,43800,13425,44849,18650,45043,18996,44878,18446,18427,44711,17771,44875,44765,17981,6609,18981,45518)
Unknown column 'np.person' in 'where clause'