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 (44870,44894,45277,18572,17237,44875,9341,6875,17904,6782,44869,4765,44848,18286,44669,5388,3,18172,17848,18301,17335,44854,28313,17835,30135,32454,44767,18652,17556,44768,44775,13425,24441,44835,44853,44766,36472,45043,5259,17839,28530,44531,45042,44762,18894,19078,45286,18650,22509,24412,17009,18185,5993,18279,44884,45346,44878,14402,4686,45180,45421,45561,17657,17981,8753,30986,44863,45516,18446,45072)
Unknown column 'np.person' in 'where clause'