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,44768,19057,44837,44711,45567,44884,45516,13,24438,10402,44848,39676,6875,44674,45262,44689,44775,17278,19078,16885,44865,14402,44870,44863,17237,5259,44739,44894,31354,17904,18650,18237,44858,44685,44867,17601,8753,44764,45177,18648,44851,44531,4765,18430,45180,17092,44669,18719,9341,17351,44873,44845,18981,18301,44671,14622,45043,44878,18172,17492,32454,18572,18794,45561,17835,18353,18688,17848,44868)
Unknown column 'np.person' in 'where clause'