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 (17756,5259,18794,14622,37267,44861,44868,3,44858,45229,45177,44711,18719,45516,44856,45277,17114,44745,18279,44687,45518,18286,17771,24412,44764,18688,44531,43800,4765,45421,18996,28313,44865,19057,10402,18353,17351,44767,44849,16885,5388,44836,18446,17848,45051,44775,44669,18185,44689,44762,37057,31354,39676,45567,44853,44835,44866,17556,17092,6609,28530,32454,44867,6862,44640,9341,13988,45515,45517,17703)
Unknown column 'np.person' in 'where clause'