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 (6875,3,44878,37267,6609,3883,17839,44863,17092,18172,24412,44854,45346,16885,24411,45042,18427,44674,44861,44867,18688,18648,44837,17492,44870,19078,45518,44739,44775,44766,44848,45043,44856,18719,31354,5410,44745,24441,39676,45180,18286,17114,44855,18650,18794,44858,18900,13922,17527,34194,4765,44689,44762,45072,44765,18301,17351,45561,18430,44868,17755,17278,44669,44866,17904,18572,13988,17703,45286,4686)
Unknown column 'np.person' in 'where clause'