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 (17657,44764,44848,3883,18446,17904,18719,17703,17351,8753,44854,30986,44531,10402,24441,45180,45517,17839,45051,45262,45286,4765,17556,3,44689,44837,44875,44836,13988,43800,45515,5410,24412,44866,18900,18430,17335,18237,44869,30135,32454,18427,44867,45421,18894,18301,45518,44669,37267,44687,18794,44775,44894,5993,14402,45043,44762,22509,44640,17092,44685,18996,44766,44745,17981,28313,18652,6782,18172,44851)
Unknown column 'np.person' in 'where clause'