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 (45567,17335,45051,44687,44851,44689,28313,34194,43800,44836,18430,17527,44873,44531,6875,37057,45286,31354,44674,45180,18981,24412,44866,18652,45262,6609,5388,9341,18900,18237,45042,44766,44867,17848,16885,18353,45072,44767,18650,44837,44845,44869,14402,16935,18042,44865,44765,5259,18172,19078,13425,45346,45043,5410,17904,39676,4686,44835,17755,18572,17756,44863,44764,17351,17703,44870,44894,44855,45177,14622)
Unknown column 'np.person' in 'where clause'