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 (17492,44531,18794,3883,44765,45515,17278,37057,30135,5388,22509,45072,18648,10402,44671,18430,17657,30963,45277,4765,17904,17009,45051,24438,5410,44768,36472,44689,18719,44863,44868,28530,17771,44870,44851,44674,44867,17601,45567,14402,44848,44711,17755,17981,17756,18688,44845,44866,44764,44869,19078,44766,19057,44873,17839,44861,45421,17848,37267,9341,44669,3,44775,17835,18172,39676,45262,45286,18652,44762)
Unknown column 'np.person' in 'where clause'