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 (44858,8753,44765,5388,45262,44764,17492,44762,28313,18688,17092,18572,18894,18996,32454,18286,37057,5259,45421,10402,43800,44867,19057,44853,3,44856,18353,44835,17981,44894,18719,6862,18650,4686,13922,13425,18446,45043,17904,24441,17114,17755,45072,44884,45229,44768,18301,13988,17835,17556,45042,17009,44671,17756,45180,44711,44531,44851,45051,44863,45277,17839,17237,18900,19078,44849,44767,44739,18430,24411)
Unknown column 'np.person' in 'where clause'