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 (17771,30135,44875,44767,45567,28313,10402,45262,44764,3,44869,19078,44867,14402,18900,45517,17981,18719,6782,18427,9341,44856,44861,44858,44835,5259,18286,24411,44671,5410,45286,6875,18237,8753,45277,44765,45229,45051,17657,6609,44685,17703,17237,5993,45515,44851,18185,44868,18996,17092,30986,37057,24441,5388,44845,18430,13988,45042,28530,44870,44855,44762,31354,18648,17556,18794,18279,45561,18688,44669)
Unknown column 'np.person' in 'where clause'