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 (17556,14402,18446,4765,43800,45042,24411,44870,18427,44775,45421,44767,18688,18996,44531,44671,28530,17114,36472,44854,44865,44764,44851,19057,44768,45518,8753,17237,44848,18894,6862,44878,30963,44745,44739,18650,18430,44861,44640,24412,13988,18172,44766,17839,17278,44711,17335,17904,44894,16885,18279,34194,18237,18042,5259,14622,18981,44845,44669,44858,13425,44856,17848,18719,22509,19078,17771,45051,45561,24438)
Unknown column 'np.person' in 'where clause'