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 (45051,18981,17839,45561,44764,17904,17092,18042,44867,45346,19078,44685,17756,14622,18286,45072,44762,39676,28313,17351,44669,44869,18427,37267,17335,44775,5410,18650,44875,44768,45421,5388,17835,44866,44836,45043,44851,44849,16935,44767,3883,34194,45517,14402,44674,44745,17237,30963,17771,18237,18279,45042,18648,44894,31354,5993,4765,18172,18353,44858,44861,6862,18185,36472,6782,44739,19057,45180,17278,45516)
Unknown column 'np.person' in 'where clause'