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 (44669,6862,44884,44765,17839,18688,44855,45561,18286,44854,17848,24441,45177,17556,36472,17835,44687,17351,5993,17756,18572,44894,17755,18353,44640,44867,45229,13,44849,14622,5388,44870,4686,44835,44762,24411,44531,17114,44767,17335,45346,44689,44861,17981,44745,17657,44766,5410,17904,18427,13922,8753,9341,17601,45518,44868,44853,45515,18996,32454,44837,17237,45051,45262,31354,24412,44739,17492,44866,16885)
Unknown column 'np.person' in 'where clause'