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 (14402,4686,44855,44745,44856,18301,18794,18172,44849,5410,18279,37057,17755,17114,44867,13,3883,17556,44868,17351,14622,36472,44689,45277,18427,17092,44851,45346,18996,44870,17835,44765,44837,44674,18650,18719,31354,18446,6609,17657,24441,17527,44865,45286,32454,18688,17492,4765,18981,45561,45229,44762,24438,17839,8753,19057,44775,44739,44894,44869,44836,3,17335,30135,18185,44858,44866,44863,44768,45567)
Unknown column 'np.person' in 'where clause'