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 (18648,18430,45042,44775,44762,28530,17601,36472,4765,18301,32454,45567,18981,18446,18900,44764,44835,10402,17756,6862,44685,44768,5993,17335,45517,44855,45051,44739,44854,19057,17351,3,18688,44878,17904,44849,18237,17848,30986,44853,45180,17237,18894,18172,37057,44856,17492,17092,17657,14402,18279,45177,44711,31354,18042,44767,44894,44851,18185,13988,17839,44873,3883,6875,44858,37267,45518,44689,17009,44867)
Unknown column 'np.person' in 'where clause'