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 (28530,45180,18430,45277,5259,17092,17335,44894,16885,44878,18648,18279,45177,18900,18794,44689,44836,44674,44858,17839,18237,24412,36472,44861,18353,6862,18688,17351,13425,17835,17657,44845,18427,30986,24441,44884,45518,44866,18172,13988,45043,44863,3883,17601,44856,4686,44764,44849,44669,24438,44766,45042,18286,18650,28313,32454,19057,4765,17904,13922,45072,45262,13,44873,18042,44837,34194,44711,17556,3)
Unknown column 'np.person' in 'where clause'