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 (10402,44768,17009,44869,18719,37267,45262,17114,22509,45229,17092,45346,44711,44866,18185,44739,17755,45421,17904,44848,28313,18172,18794,5259,19057,18652,45518,44878,17703,18427,18900,44845,16935,44884,5993,30986,6782,18894,19078,24441,45042,18237,17848,4686,44875,45516,28530,44835,13988,45051,45567,44762,44870,6862,17556,5388,44873,17756,44671,17278,17981,13,24412,18301,44531,39676,18430,44685,17601,32454)
Unknown column 'np.person' in 'where clause'