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,17981,6609,45177,44685,44762,45516,17601,13922,44875,44669,30963,18279,45277,18996,30986,18446,44856,44878,3883,28530,45262,44873,17904,44775,17756,6875,17771,45051,5993,14622,44836,45286,17237,18286,16935,10402,45518,44689,17335,44858,30135,44894,18894,45421,17839,32454,9341,44764,44711,44767,18185,5410,17278,39676,18688,18353,13988,44870,17114,28313,44745,6782,44766,18301,17527,44849,44765,13425,6862)
Unknown column 'np.person' in 'where clause'