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 (5410,44878,45262,17771,45517,18301,44869,44863,44745,18286,45515,4686,44868,6862,18719,45286,17351,17092,44835,44851,44764,18688,44865,31354,44855,44870,18237,18900,44873,44775,45042,14622,44853,24438,18996,6609,28530,44884,17981,44768,16885,34194,44849,17835,30135,36472,17703,44685,18652,44531,44689,9341,45277,19057,44669,45177,17904,37057,24411,3883,3,44711,45561,18042,44671,6782,44765,5259,13922,19078)
Unknown column 'np.person' in 'where clause'