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 (17835,17657,18185,44768,45515,44865,44745,13922,18650,44878,44851,45043,30963,45516,44767,44775,5259,45042,18279,17237,44873,14402,45421,18719,17771,8753,17848,13988,43800,9341,17755,18652,18996,16885,44836,18286,22509,3883,44875,17527,17756,13,30135,6862,44531,19078,17981,4686,3,44849,45517,17351,44867,19057,18794,45177,44856,5410,4765,13425,30986,44765,31354,17556,44835,18900,17335,18981,44711,17601)
Unknown column 'np.person' in 'where clause'