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 (45346,44766,17771,18185,5388,44867,17835,37267,44853,24441,45515,5259,44875,16885,17703,45180,44745,18652,28530,17492,44851,44685,18286,6609,44768,45262,19057,43800,45042,18237,4686,36472,18446,17351,17114,44674,13425,44868,34194,44765,44669,17981,44873,44687,45277,44863,44856,14622,44848,44861,17756,44869,18353,45051,9341,14402,18279,44870,18894,18430,17237,16935,24411,45043,44849,18648,22509,18650,44858,18172)
Unknown column 'np.person' in 'where clause'