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 (44671,37057,6875,45043,44767,18794,44867,17981,24411,36472,5410,6782,16885,18650,44775,45286,17351,5259,16935,44866,24412,37267,17527,44711,17492,44858,44762,17278,18900,17335,44745,17835,28313,31354,45346,18301,44878,6862,17756,17092,44765,18648,13988,8753,10402,44869,44865,45518,6609,45180,44689,18688,17237,44875,17904,44873,44835,5388,28530,18042,45517,45177,44739,45421,43800,44768,44766,18719,13922,18996)
Unknown column 'np.person' in 'where clause'