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 (45286,44739,17492,44861,5993,45346,24412,6609,17114,24441,30986,14402,44875,36472,3883,44870,17601,44866,44855,44671,44878,5259,17904,45180,44894,18430,6862,37267,31354,4765,17278,18650,18996,18286,17351,18237,44689,45072,44848,32454,18279,18648,17755,17848,44845,24411,18301,13425,9341,45051,3,28313,44766,44835,44837,17981,18900,10402,16885,44873,18652,5388,44685,17839,18042,44867,44765,45177,44711,44775)
Unknown column 'np.person' in 'where clause'