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 (13425,44853,44858,44775,44689,17981,34194,13,18286,44851,17839,44762,44745,17237,45229,18279,5410,18688,44868,44531,24412,45286,5259,4765,18446,45072,18652,44884,30963,18185,45346,5388,44687,45177,45043,18042,3883,8753,43800,44873,45180,3,44767,45042,18900,44837,18572,44764,19057,14402,17527,37057,18996,37267,17114,44765,4686,17492,18430,17092,44894,13988,17755,30135,18237,30986,14622,6609,44863,45262)
Unknown column 'np.person' in 'where clause'