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 (6862,45286,45561,5388,44835,44767,18650,18185,18894,18794,45262,17835,17601,18900,44867,18301,30963,30986,44837,44687,44884,19057,4765,44768,44739,37267,44854,18279,39676,18688,17904,44836,22509,44870,17848,44869,44855,17351,18172,28530,5259,45177,34194,28313,44861,44764,44873,18427,44875,6875,44848,45518,45515,13922,17237,45567,17771,44685,17556,17114,44856,4686,45180,32454,18981,45051,17703,44689,31354,44878)
Unknown column 'np.person' in 'where clause'