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 (17771,17092,18237,44854,18650,44869,24438,18900,44866,17278,45229,45515,44865,18185,45051,18719,18894,6875,5259,45277,24411,18572,17556,18652,44858,17335,45518,4686,45517,28313,44762,45516,44849,44870,44711,18042,18427,19057,44765,17527,45421,44868,39676,36472,13922,44856,44674,44531,44848,44689,18430,6609,13425,18172,43800,18981,14402,9341,17492,17114,45072,44671,17904,17848,13,44855,17835,18301,18279,30135)
Unknown column 'np.person' in 'where clause'