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 (28313,28530,45421,44640,34194,45516,18446,18430,18996,17835,44869,44836,45051,17981,17527,45277,18688,17556,44837,17755,44851,44873,4686,44870,45517,3,5410,45561,18185,17756,18042,18172,43800,5388,44762,17009,16885,44845,45180,13922,18719,45286,45346,44745,44866,45567,22509,44766,31354,18981,39676,44671,13425,45262,17237,44853,44775,44865,13,44861,37267,17771,18286,6609,37057,19078,30986,6875,6782,44868)
Unknown column 'np.person' in 'where clause'