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 (45042,31354,24438,17755,24412,8753,45277,18900,32454,45177,45262,18650,13,6862,19057,5259,44878,17527,22509,44766,6782,18648,17848,44867,44762,44870,45517,39676,45180,44873,30986,44739,45286,10402,45043,37057,44869,44671,44835,19078,18981,44849,18185,18446,18286,37267,45567,18301,18894,44640,30135,44866,18042,44884,44711,44875,44531,28530,18719,28313,44856,17335,13425,44861,17839,18237,45346,18688,44858,5388)
Unknown column 'np.person' in 'where clause'