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 (30986,44689,45567,44768,44835,22509,45072,18237,10402,44669,44764,45346,17657,18279,44873,45229,28530,30135,45517,45042,18894,44870,24441,18650,17335,18719,45286,5410,37267,17839,18185,44855,17237,19057,19078,18353,6609,45177,18900,18794,24438,18172,9341,28313,44674,44854,17703,17114,44878,44765,13,44766,6875,6782,44866,44739,32454,44869,17835,37057,44531,5388,44858,5993,18430,44868,17351,4765,45180,17904)
Unknown column 'np.person' in 'where clause'