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 (16885,14622,24411,18794,18688,44867,31354,44865,44768,17839,6862,45346,44669,44745,17835,45051,5993,13,5410,17981,44863,44858,44868,18353,44870,45517,44767,16935,14402,18900,17092,44861,18446,18042,44674,30963,45177,18430,19057,18719,44640,44875,22509,18894,6609,44878,44689,17278,44762,37057,18237,3883,28530,44866,44739,44853,17657,17848,39676,44765,44854,44894,44856,18185,44775,44869,45516,44873,45518,17335)
Unknown column 'np.person' in 'where clause'