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 (18279,44766,44762,37057,3,44845,45277,44853,45518,45042,44866,24412,44856,17556,44865,18430,17756,44835,17703,6782,45561,45421,45515,28313,44851,45043,44745,37267,45229,31354,44875,18185,17335,5259,18237,16885,44689,18286,17278,18427,45180,24441,44861,32454,44674,44869,44894,3883,18172,19078,17092,5993,4686,8753,45286,17981,17492,17351,18794,18900,44849,17771,17527,44868,45177,44765,13922,17237,18894,44775)
Unknown column 'np.person' in 'where clause'