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 (6609,32454,17492,18279,45277,24412,30986,17278,18900,13988,17114,18286,44854,44867,45518,44766,44687,44869,44531,44836,43800,18430,18042,44768,3883,4765,3,18794,17771,44711,44861,5993,44765,17848,6862,5259,17981,19078,17237,18719,34194,18185,5410,17657,31354,44875,44894,44685,45229,4686,18446,44878,36472,44845,28530,44674,45346,17904,10402,17092,18650,30963,44837,44764,37267,44775,24441,44870,22509,18981)
Unknown column 'np.person' in 'where clause'