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 (18353,44884,17756,17092,3883,3,17657,45262,44861,18172,44867,45177,18427,6862,45516,5993,43800,44685,45286,45515,24412,44858,18688,44855,44856,44745,45051,44765,17835,24411,18894,30963,17703,45229,44531,18981,17114,19057,18446,44669,17904,18572,17839,18430,44851,44894,44848,13988,17278,17237,45042,44739,17771,44766,18652,6782,44878,44762,9341,45421,44869,18301,44711,37057,6609,4686,44854,45043,44870,44835)
Unknown column 'np.person' in 'where clause'