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 (17527,45286,17835,13425,5388,6609,18996,45051,17278,45517,44767,45567,44867,44837,18042,8753,44869,18430,44745,44775,17556,44858,17703,10402,24441,17839,45042,17335,18279,45277,13988,30135,44875,17981,44856,44854,16935,44866,6875,17904,44894,44863,44689,44884,17114,45177,44845,44674,44768,9341,18446,37057,44861,44671,16885,18301,24412,18237,44865,24438,44848,44739,4686,6782,18172,44764,45180,17092,45561,32454)
Unknown column 'np.person' in 'where clause'