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 (18427,18650,45072,18286,44875,6782,17703,44711,19078,44848,17114,44867,24438,37057,18301,17237,17981,44685,30986,45043,45177,6862,18572,13988,18794,45051,5388,45516,17278,17835,18446,44775,18237,44851,17556,44669,28313,44866,5410,3,17009,45346,14622,24411,44766,44856,16885,17756,17527,17904,44855,44689,31354,13425,44837,18900,39676,44861,44739,4686,44884,44853,17335,45042,18652,18648,44687,5993,24441,6875)
Unknown column 'np.person' in 'where clause'