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 (18353,44869,44853,17114,17527,17092,13425,17492,44671,5259,44669,37057,18794,44875,44766,18900,45346,44767,44674,30135,18185,18996,8753,45262,6609,17009,4686,18719,45567,4765,44863,44861,44640,18894,6782,45180,24441,17601,44870,24411,16935,9341,6875,45515,45277,44866,17771,45516,44855,17904,17703,3883,28313,44764,45517,45051,44894,17835,18042,36472,39676,44762,17848,17657,44865,10402,5410,18301,32454,18652)
Unknown column 'np.person' in 'where clause'