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 (30963,45262,44869,24412,17755,18430,18286,45177,17756,45515,43800,30135,9341,44878,17278,18279,45561,44848,18446,45518,17556,3,13,18981,39676,18650,13988,18648,17335,22509,17835,31354,17237,18900,44711,44851,44849,44865,17703,18185,18572,18794,32454,24441,17981,17092,44884,45042,44853,44866,45421,34194,44894,44685,30986,16935,44765,45346,17009,17904,44640,6609,44687,28313,6862,45517,18042,17114,18719,18353)
Unknown column 'np.person' in 'where clause'