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 (44873,44835,44856,18996,45180,44849,17237,45421,44739,45567,17114,24441,44858,16935,44671,45286,44775,44767,44766,17835,17335,9341,37057,18648,44884,44855,45518,44867,17351,44854,18572,5993,18286,45515,5410,44674,37267,18719,17839,43800,44764,44851,18042,24411,5259,17848,44870,17904,19078,30135,39676,18172,3883,45072,45177,31354,44868,17981,34194,45262,44768,44861,18446,36472,45561,44837,16885,13425,44531,44865)
Unknown column 'np.person' in 'where clause'