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 (18301,44869,44870,44853,44867,18185,44739,17755,19078,44837,4765,17278,18688,5259,30963,17556,44766,44674,44861,44762,24412,44745,18894,17703,6862,5410,45518,18648,44866,28313,44768,44689,44764,44851,44884,18794,18430,13988,18650,18900,44711,45516,17848,45421,17114,18719,44640,44685,44894,44767,18427,22509,44687,17981,17237,31354,24441,37267,17756,44865,45515,17839,44836,44669,39676,45180,44849,8753,18353,19057)
Unknown column 'np.person' in 'where clause'