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 (45177,18981,44767,44848,24438,28530,17981,30986,44854,44835,45567,44845,44640,45042,36472,18719,6862,44875,17755,45517,44531,44869,18286,44836,13425,45561,6609,44711,17703,44858,44867,44766,37267,18427,18572,30135,3883,18042,45515,17771,3,18185,44671,16885,45516,18688,45043,44861,32454,44851,18900,44856,5388,17848,44765,45286,43800,44884,18996,19057,44837,17335,5259,17839,18894,17835,44762,44775,17278,17092)
Unknown column 'np.person' in 'where clause'