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 (17092,18688,19078,43800,32454,17657,17981,44870,45421,39676,22509,10402,17839,17351,16885,18353,18042,44849,44711,44845,45518,45515,5410,45229,24412,17835,44837,18430,44853,17771,45516,5388,45051,45517,18172,44848,13,19057,18286,17114,17756,18648,34194,18427,44764,17904,45072,45042,44865,44868,18719,44851,44669,3883,44762,44856,9341,4765,44685,30963,45262,17556,44869,17492,45286,44855,44671,44531,44765,44866)
Unknown column 'np.person' in 'where clause'