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 (44855,17527,28530,44711,6782,44689,44745,44865,44669,45517,44849,45561,45072,44854,18301,44868,44685,44766,13,44765,9341,24441,17092,44768,45177,22509,44853,17756,44764,44845,18652,18172,3883,18719,17114,45518,30986,39676,44687,45516,18042,44867,5410,18353,45277,18894,44870,6609,18900,44674,44884,45051,30963,45043,17981,44861,45515,13988,44866,5259,44848,17009,17237,17835,44739,18648,17904,5993,17755,19078)
Unknown column 'np.person' in 'where clause'