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,32454,45042,44775,44745,17351,17237,44867,45051,45277,36472,17848,39676,44851,17009,18894,18042,9341,44866,17835,17657,28530,44671,44845,14402,4765,18650,44711,44853,44765,13425,17839,17335,18996,45180,18688,44875,17756,28313,5388,43800,44870,44869,44689,44856,18301,13988,44836,44848,3883,44764,19078,44855,5410,18652,17114,18237,44894,18172,45229,17556,30986,18430,16885,44768,24438,44878,44865,44873,14622)
Unknown column 'np.person' in 'where clause'