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 (17601,18794,17839,44873,17771,17756,17755,45346,37057,22509,13922,17009,10402,45262,6862,44865,17092,18172,4686,18648,16935,44855,17278,18719,8753,17351,44867,18427,44848,44711,16885,18650,18688,45229,17556,44775,18301,17114,44854,45515,44745,13425,45051,44894,44766,6609,18185,18237,44861,30963,45043,17835,17527,5259,44739,45177,44853,44870,3,18042,44689,17904,44687,45518,5410,9341,45042,44768,44835,44868)
Unknown column 'np.person' in 'where clause'