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 (36472,22509,17981,45286,13922,44875,44869,44739,45180,18650,17756,18430,19078,44856,19057,6862,44711,44894,18279,18286,44768,16935,18446,45277,17703,24412,44855,13,18900,44867,3883,45567,14402,17835,17848,18301,17092,17351,44764,44531,44745,45042,17114,31354,16885,44861,44689,44685,18172,39676,45229,17601,5388,44870,44866,44845,18185,45177,45262,24441,44854,18042,45043,44884,44669,17278,28313,44674,44766,18353)
Unknown column 'np.person' in 'where clause'