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 (39676,44764,6875,19078,18237,17601,17114,5410,44870,44739,24441,45515,44856,18427,14622,5993,17492,44851,30135,30963,44767,45072,6862,18279,34194,18996,5388,44762,18794,44848,10402,44868,17237,9341,44867,45421,18650,44768,18286,45177,44875,13922,45262,44745,44861,30986,44866,18981,44873,44845,45567,44669,44869,6782,44775,17848,13,16935,45042,44854,17755,18042,44640,44687,45043,44855,24438,8753,44849,32454)
Unknown column 'np.person' in 'where clause'