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 (44640,44868,44849,44878,45180,44764,13922,36472,18894,44894,17009,17771,28530,30135,17556,32454,22509,14622,5410,18301,45567,44854,44768,44856,17351,18572,44765,6875,17904,10402,18648,6609,14402,30963,45043,18427,18652,45051,6862,17114,44745,13425,44685,5388,45346,34194,44711,18430,18900,16935,5259,19078,17981,44767,6782,17657,24438,5993,17527,4765,44870,44835,44869,37057,18794,44866,28313,3883,45515,17755)
Unknown column 'np.person' in 'where clause'