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 (17601,44855,45515,44870,44766,44836,6609,17492,37267,44762,44865,18430,18648,14622,44765,17092,44775,17351,19078,44854,3883,45346,17278,44863,5259,30135,44867,44853,44669,24438,10402,24411,18301,39676,6782,17755,18719,30986,44884,16885,44768,45421,8753,36472,43800,18900,17556,17237,6875,44848,18996,18688,28313,44671,44866,18427,44837,44640,17904,44764,17009,18572,17657,45051,45072,9341,17771,18185,44531,4686)
Unknown column 'np.person' in 'where clause'