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 (18719,3,45229,16885,28313,18172,17756,44766,45515,44762,17237,44685,18648,24441,44851,6862,44689,45561,28530,44878,45421,44671,45177,16935,17835,22509,17848,31354,17092,34194,37267,13425,45286,44884,18353,44687,45262,5410,44868,44856,6875,45517,44849,17351,18279,17335,5993,45277,8753,44869,17771,18981,44768,17492,14622,17703,45072,4686,18996,44745,18430,37057,45567,44674,44863,17601,18042,6609,45043,13988)
Unknown column 'np.person' in 'where clause'