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 (34194,18648,18981,18279,18237,44766,45515,39676,44868,18172,44875,19057,44669,14402,44671,17351,17527,18427,6875,18286,44835,14622,9341,17839,45177,17835,45072,16935,17492,45229,44674,44884,44739,18430,44837,44854,5259,45043,18185,45051,44878,17278,18688,44866,44685,45262,19078,44845,44870,17335,22509,17756,24441,17237,18719,24412,45421,4686,6609,44865,3883,44745,17981,17114,44861,10402,17771,3,45518,44869)
Unknown column 'np.person' in 'where clause'