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 (45516,17904,24411,18572,5993,44745,30986,16885,17601,18430,44855,44868,28530,8753,44766,44837,5410,44764,18172,16935,45180,13988,44671,30135,3883,44768,17114,18719,44884,18894,17657,44845,13425,43800,17848,17756,24412,18042,44867,4686,45421,45346,6875,6862,17351,17092,18185,37057,24438,44739,45043,44835,45518,18353,18652,45567,17556,44869,44866,44848,17755,14402,44878,6782,44865,18446,39676,17237,45515,19057)
Unknown column 'np.person' in 'where clause'