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 (44855,13922,17237,17835,17009,44870,13425,44873,17755,6782,4765,16935,30986,17335,44869,16885,24441,18042,44766,44739,17351,17492,44868,44858,39676,6609,44762,44745,3883,28530,44853,44849,44867,18286,18652,45286,18688,45516,17657,6862,3,18185,17556,28313,5410,44764,45180,18648,17278,24412,44894,44861,5388,44866,45043,17839,44884,5993,5259,44851,45346,18353,17904,44856,45277,10402,32454,18446,45517,18279)
Unknown column 'np.person' in 'where clause'