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 (18794,30986,18688,43800,24441,18430,17981,18996,16885,45277,44858,5993,36472,45072,44711,44867,18719,45262,18301,44851,19057,45517,31354,18279,3,45177,30963,17839,17771,45286,44865,45042,44853,44669,18652,13,17092,44884,44863,18446,5259,17335,17114,3883,17755,44873,17904,44764,17009,16935,44762,45567,18427,44745,44849,22509,17556,44768,44775,17351,44767,44894,44855,6875,9341,28530,6782,24438,45229,39676)
Unknown column 'np.person' in 'where clause'