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 (44766,45262,44835,32454,18572,8753,44875,44849,44866,13922,24411,18427,18688,5410,18996,18900,4686,18794,18042,22509,17556,6875,34194,36472,44768,30135,44711,37057,24412,17657,44669,44739,24441,17755,17981,13,14402,17835,45515,45043,44671,3883,44863,5993,18652,19057,44878,18981,18894,18286,5259,18719,31354,17527,44854,45286,44762,44837,45072,44687,45042,44867,45518,17092,17904,44836,45051,17839,19078,30963)
Unknown column 'np.person' in 'where clause'