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 (44848,44873,17839,44851,5259,32454,17527,45516,44865,18301,44739,13,24411,18446,39676,18650,17278,44764,45518,44855,18427,17335,45051,44531,18719,45262,44858,18430,44875,4765,17492,18286,45177,44669,17351,17114,44854,37057,18648,30135,5993,18981,44878,44767,8753,18652,45517,3883,44711,13425,13922,44870,18279,30963,31354,44766,45515,22509,4686,17556,45042,45043,36472,45286,45229,10402,18185,18237,44689,17756)
Unknown column 'np.person' in 'where clause'