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 (6875,44869,44849,17527,18894,45567,17657,44894,44835,17771,18279,18794,24411,44640,18427,3883,45517,39676,6782,19057,45286,44767,36472,45518,44745,44875,14622,44768,8753,44739,18981,18446,5993,44870,18900,44669,4765,44878,13,30135,17092,37057,44856,30986,6862,17981,3,16885,17351,5259,45561,44867,45051,44854,17009,17848,45277,17703,17114,44685,17904,18286,17756,4686,18042,18430,28530,44861,22509,18719)
Unknown column 'np.person' in 'where clause'