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 (18301,18900,18719,45072,44768,6782,44853,44867,18572,18652,37057,44836,24441,44845,19078,44835,18894,44711,13988,9341,3883,44870,45421,45177,16885,36472,6875,13425,17351,45518,44687,17278,17092,45346,34194,24411,10402,44689,45286,5993,17771,44856,13,45262,44873,18279,18446,18237,44884,17492,17839,18650,44765,44861,18794,24438,44767,30963,18430,17601,44878,44875,28313,17904,17755,19057,45051,45515,44775,22509)
Unknown column 'np.person' in 'where clause'