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 (9341,44767,44836,17981,45518,45517,44531,18652,37057,6609,32454,6862,34194,45421,18794,44854,44766,17351,18894,44689,18648,30986,45286,18572,45072,45346,13922,45177,16885,5259,24438,4686,17092,17335,18427,6782,18353,44762,17771,13,18279,44855,6875,17755,45180,44865,18430,17527,45043,17278,17703,18172,17756,18650,45567,44884,44851,44640,17556,44867,18900,22509,24411,45051,28530,18301,44671,19078,17601,44856)
Unknown column 'np.person' in 'where clause'