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 (24438,45517,44835,18353,44869,16935,18652,18185,17527,43800,17237,18279,45277,28313,44745,13,44640,44739,44851,5993,17755,45177,45042,4686,3,13988,30963,44775,18894,17848,44863,44875,6862,44866,9341,45262,18172,18301,45421,18794,18650,17839,45516,17904,44687,18430,28530,19057,44884,18719,17981,19078,17756,45180,36472,44861,44762,6782,44870,45229,17009,45515,44837,18286,16885,8753,5410,18648,44669,17278)
Unknown column 'np.person' in 'where clause'