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 (18650,13,18648,18237,5410,45043,17527,17009,18794,44766,13988,44869,44875,28313,17755,3883,13922,44849,5388,17981,6862,22509,18572,24411,44674,45346,45229,45262,39676,17114,45561,44762,17839,6782,16935,44775,45177,19078,45051,44765,5259,44866,4686,45517,5993,44873,18719,37267,44858,17848,44768,44689,44856,13425,44531,45072,44863,18172,44855,18430,44764,44861,44669,24412,44711,32454,17335,30135,18996,24438)
Unknown column 'np.person' in 'where clause'