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 (18648,44867,45262,45042,4765,13,37057,17009,45421,44711,18981,45180,17492,44685,44878,31354,39676,45072,44745,18719,6782,44836,13922,18185,45051,44766,34194,17981,17527,28530,17237,43800,45517,44764,44739,44531,18688,44767,17092,18279,36472,17835,44861,44837,24438,44853,44873,16935,17848,10402,44849,3883,44851,6875,45516,44765,18430,17556,5259,44894,45515,44768,18427,4686,24411,18894,30986,18446,44640,44869)
Unknown column 'np.person' in 'where clause'