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 (44878,28530,44866,44854,45286,17237,36472,17703,44711,44868,37267,19078,17601,13,30963,18981,44870,9341,44768,18894,44767,44875,18353,45072,24411,4686,44762,39676,45277,17981,13425,22509,6862,45515,44775,3883,44837,45421,45051,44867,45180,5259,24412,18042,17278,18900,16885,18237,18996,44689,44861,17492,45229,10402,45567,17848,44764,45177,44765,24438,18430,18688,30986,6875,45262,44687,44674,6782,45517,18279)
Unknown column 'np.person' in 'where clause'