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 (44669,18427,44765,44866,39676,44855,13988,18172,28530,19078,19057,31354,44858,24411,45421,44687,43800,5259,45346,24441,4686,17351,45518,6875,13,18430,45277,44685,18279,6782,44865,17657,44764,45051,8753,17114,44870,45515,17601,16885,45177,45229,17237,44775,30986,18446,18648,18286,24412,17556,18572,17335,44851,45561,44762,17278,17492,44766,13425,44711,5410,18996,45042,17009,45516,9341,45043,44767,17703,44640)
Unknown column 'np.person' in 'where clause'