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 (18996,44845,3883,44848,44765,44851,8753,44739,44775,44766,44884,44855,44870,45042,45517,44894,32454,45516,3,18446,30963,14622,13425,18652,17755,18572,30986,5259,36472,18650,18900,44687,44875,18894,14402,17756,44836,45051,24438,18042,10402,44835,17278,44856,44878,13,44861,44837,18719,45518,17904,44764,18430,45177,28530,39676,17657,44853,16885,17835,17601,44711,45346,22509,17351,45567,44669,18427,6782,24411)
Unknown column 'np.person' in 'where clause'