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 (3,5993,8753,22509,18996,44855,44875,17981,14402,44851,17335,24412,18900,45277,18572,18981,17771,44878,17237,32454,17904,6782,34194,17492,45043,31354,44739,18719,18286,18237,10402,44858,36472,6875,18894,44764,28313,44640,37267,44869,17092,17755,45051,44768,45286,17278,13,17848,17756,37057,44873,30135,44863,44854,17527,4686,44845,44689,17009,30986,45515,45561,45042,44745,44674,44671,45180,17703,44849,18688)
Unknown column 'np.person' in 'where clause'