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 (44845,18042,44764,44775,45180,44858,44835,45042,24411,18719,6862,44762,44856,6782,13,44866,17657,24438,14402,13988,44739,45515,44671,3,17835,5259,17755,18996,18446,18172,45043,45277,36472,44669,17556,14622,44687,17278,17771,10402,30135,45567,17527,44745,17237,44854,18572,17981,45177,45516,6875,16885,44867,18894,44837,18185,17092,44766,8753,44767,45051,37267,19078,44865,18648,31354,5388,18652,18430,44894)
Unknown column 'np.person' in 'where clause'