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 (45180,44689,44875,45072,5410,18900,16885,24438,18172,17756,18719,44848,6609,45042,45277,45229,45518,3,18279,17335,3883,18353,17848,44766,45177,24441,44765,44853,44870,39676,18652,18427,44854,17835,32454,45517,44837,18446,17601,17771,18572,30135,24412,44531,4765,17237,19078,18185,44640,44745,45515,17092,36472,44867,14622,18981,18286,17351,44687,44762,45346,14402,17114,28313,44866,17755,9341,19057,13922,5993)
Unknown column 'np.person' in 'where clause'