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 (44739,45177,34194,17092,44875,19078,44863,44849,14622,44845,17981,17335,18652,18427,17556,44835,45051,5388,44689,44848,44854,5410,18900,17114,44762,44669,44764,4765,45229,24441,5993,45561,18794,8753,28313,18185,14402,45180,45043,18648,17703,17755,31354,44870,44765,18981,4686,44531,17835,18719,45072,44685,18688,44766,44687,3,10402,17756,44861,44775,45042,17657,30986,3883,45277,39676,44837,22509,44856,18446)
Unknown column 'np.person' in 'where clause'