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 (13988,44861,44835,44764,44878,18446,17839,37267,17492,44870,10402,44855,18279,18572,44853,31354,45229,18042,18353,18648,44775,45043,8753,44884,5388,28313,45042,13,4686,18688,13922,16935,18185,5993,44745,17335,18719,17848,44689,44849,45515,17601,44873,17556,3883,17755,17904,44767,45346,17092,44685,24438,18286,13425,44869,39676,18172,37057,18430,18237,30135,18900,17278,4765,44854,16885,44669,45177,44766,44765)
Unknown column 'np.person' in 'where clause'