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 (45262,13425,4765,45042,17771,4686,44848,45072,45177,18652,10402,8753,5388,24438,43800,45516,44766,45051,9341,32454,3,18894,17601,17335,44687,5410,17492,44669,30135,44845,44855,17755,18794,44884,44835,44689,45421,44851,44762,17981,44878,30986,44745,44867,44640,45567,6862,45229,44775,44875,17114,18996,17237,34194,45346,17556,44856,44853,24412,18042,18286,45043,37267,22509,17839,44837,44869,44854,45515,44866)
Unknown column 'np.person' in 'where clause'