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 (44669,17904,13425,17527,45072,45286,45229,17237,44775,14622,45177,44878,18794,32454,18172,18996,44689,44870,44861,18688,5410,36472,44865,44894,44687,14402,16935,45517,37057,18237,18572,44745,45515,18719,44685,18650,44849,24438,17278,6782,45277,13922,19078,45518,31354,30135,17351,44768,9341,6862,18430,44765,13988,4765,18185,34194,17092,45561,45180,44854,18981,17756,18648,17703,44869,45262,44739,5259,17981,44845)
Unknown column 'np.person' in 'where clause'