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 (18427,17351,18794,45277,44739,19057,45515,37267,44765,17492,18430,45561,13988,30986,17335,44848,5259,45518,19078,32454,17848,45421,44685,18996,10402,17703,44851,17981,18652,44836,17114,44866,18237,18279,17756,44845,31354,24412,17771,44775,37057,44870,18648,44711,44853,45262,45516,18981,45042,18650,18301,44878,44855,17755,44674,17657,43800,45177,44768,44640,24411,4765,39676,28313,18353,45346,44745,17527,44858,18172)
Unknown column 'np.person' in 'where clause'