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 (18652,17556,44762,19057,44835,44767,18572,45518,18286,17092,44854,16885,44689,4765,18894,18719,17492,18279,44884,19078,5993,37057,45346,44869,6609,13988,44866,44739,45177,17009,45286,45043,44894,44711,44848,8753,18185,17771,5259,44849,13922,17755,18794,45421,44868,44531,17237,6862,18353,18996,17351,17839,24441,44855,44875,30135,17657,44765,45517,45262,45042,18430,44853,17981,44640,14402,17904,9341,45277,10402)
Unknown column 'np.person' in 'where clause'