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 (34194,44868,44855,18185,44853,4765,18237,30963,45517,30986,16885,45229,18981,18286,18652,45072,24411,45346,17703,32454,13988,44863,44689,17556,17092,44711,45421,19057,18042,44762,17601,45277,19078,18301,18430,37057,37267,5993,44875,18427,3,44854,44856,18688,45567,24412,6862,17527,44739,44768,17335,44869,45051,6609,44894,17237,44764,45515,5410,17755,36472,6875,6782,44848,44878,22509,18719,44767,30135,44775)
Unknown column 'np.person' in 'where clause'