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 (16935,44863,13922,18894,18427,17703,17756,6875,45072,44869,17755,44851,18353,44836,44878,17092,44767,44685,44687,18446,30963,44868,45180,45517,17981,9341,18719,31354,10402,17848,18996,44867,19057,18042,17835,44856,17278,5993,44711,14402,18981,18794,17351,34194,28530,44766,44855,13,18185,44866,37267,17771,5259,45229,44835,6609,44745,44739,16885,36472,37057,44671,44531,13425,17335,44875,24441,44837,44689,18430)
Unknown column 'np.person' in 'where clause'