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 (45262,17904,44671,37057,44685,30135,18301,44853,45421,44867,16935,44689,18185,18648,44669,44845,18042,17556,17601,5410,44866,44687,17755,17335,45518,17756,28530,43800,44766,36472,17092,30986,3,5259,17351,44861,39676,18286,44865,19078,17771,30963,18430,44836,18981,45177,24411,17835,22509,44640,44745,45515,13988,44870,31354,45561,18427,28313,4765,34194,45180,16885,44674,18237,44875,18650,18688,44835,44768,44764)
Unknown column 'np.person' in 'where clause'