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 (24438,45177,45043,3883,28313,34194,44873,44689,18237,18172,44845,44674,24411,44835,18688,44869,17657,17904,9341,17755,44851,24441,44711,45518,17771,45180,18042,44894,44870,16885,4686,45561,18185,44640,13,44745,44766,45262,3,43800,44861,17351,17839,45516,8753,18650,44884,44856,44685,44848,44867,44863,6782,17492,17092,45072,6609,44866,19078,44836,18894,18430,17756,44868,22509,45515,44669,24412,5388,44853)
Unknown column 'np.person' in 'where clause'