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 (24441,13,16935,3,6862,44853,9341,45180,44856,44531,5259,18301,5993,18279,30135,44867,17556,44868,18353,3883,17092,44861,45277,45516,4765,44894,18427,4686,44674,18648,17492,18719,16885,17335,17009,18237,44762,28313,6875,14402,17278,18172,24411,44766,44835,18650,18688,30986,44765,44869,44884,44878,18430,36472,44854,22509,45421,45518,18185,45262,17237,44858,30963,17981,10402,24412,45072,44775,44764,13988)
Unknown column 'np.person' in 'where clause'