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 (18172,44765,45177,24441,44775,17351,5410,44671,45043,18794,39676,17527,45072,6875,18430,44849,18353,17009,45517,32454,18652,18996,18900,18446,5993,10402,45346,13,44739,24411,17335,17601,17114,18185,44687,19078,30963,17755,14622,17835,18237,17839,6609,17492,44766,3,44867,44858,34194,28530,17904,44854,18042,14402,44837,17657,44863,8753,44853,17771,37057,18279,3883,18981,5388,44745,28313,45515,45518,44865)
Unknown column 'np.person' in 'where clause'