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 (17351,45229,45042,44851,18301,17092,44836,30963,36472,4686,44775,44640,18688,44669,17848,44762,13425,44835,44837,44853,17114,24441,13922,44685,44531,17839,44884,17703,45421,18650,18446,44687,44767,45286,18652,5993,44861,18430,18996,19057,31354,5410,30135,18894,18794,39676,45561,18237,5259,44671,17904,44869,18981,44867,44768,44870,44866,3883,17237,17009,17771,37057,18353,44848,6782,45518,44854,44764,24438,44689)
Unknown column 'np.person' in 'where clause'