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 (45043,44687,45051,17492,39676,6609,18172,18185,17848,44762,44858,17981,44689,5259,44870,28530,45229,37267,18286,13922,24412,37057,18650,44866,22509,17755,18996,3,17771,17335,43800,44837,18430,44869,44835,4686,14402,17237,4765,18446,18894,18981,18427,44865,44878,44766,44767,18719,18648,17657,45515,44853,44861,17703,18279,45180,16885,30963,24411,5993,6782,18900,45346,44867,44669,44873,45072,18572,17114,13)
Unknown column 'np.person' in 'where clause'