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 (24412,44775,44765,45051,44878,45277,44766,3883,18430,30986,30135,8753,30963,17703,45421,4686,17092,17601,17556,17657,16885,44853,18353,5410,18279,17237,45515,44835,44856,32454,18427,18652,31354,44745,44689,44640,18981,6782,44851,44865,17335,16935,18894,17278,44768,17114,17755,4765,24438,45516,17351,18301,44868,36472,44863,18172,18794,6862,6875,3,18650,17492,18572,44866,44764,17771,45229,18185,17009,13988)
Unknown column 'np.person' in 'where clause'