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 (45277,44868,45518,17756,44768,8753,44685,17981,13,19078,44687,6862,45567,45042,45516,44775,44873,45180,44845,18719,17237,17835,44851,44894,45262,6609,17527,17092,28313,14402,22509,45421,44867,44884,44765,5259,17848,18894,31354,4686,45051,9341,10402,44863,3,44856,45177,13425,18185,18652,17755,44689,39676,18446,44669,17335,24441,45229,37057,34194,44671,16885,18353,13988,30135,44865,44762,17278,17492,17703)
Unknown column 'np.person' in 'where clause'