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 (14402,17601,44762,6609,17657,44861,44764,45518,44863,44687,18900,17755,44867,3883,37057,44894,6782,18430,45051,18794,44865,18650,17904,44765,3,44836,36472,8753,45180,17492,31354,44711,32454,17556,44875,18172,9341,44835,24438,44854,18981,30963,44837,19057,44674,45561,22509,18301,5259,45177,4686,18894,44866,34194,44671,17771,17839,17351,45421,28313,44868,45262,17092,10402,44531,30135,18185,44689,17114,44768)
Unknown column 'np.person' in 'where clause'