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 (17981,44775,45051,45515,17703,44858,17527,45180,44745,36472,17848,44687,44854,44867,37057,18688,18286,17556,45277,44837,18446,18430,44671,17335,13,16885,18794,22509,18650,3883,43800,44861,44870,44855,19078,30963,17771,18996,6609,28530,24411,13425,9341,45346,18981,18719,44685,24441,44865,44836,44835,18353,44869,18648,45517,45567,5388,44711,17278,17092,19057,45042,18652,17009,32454,5993,3,44766,44764,45177)
Unknown column 'np.person' in 'where clause'