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 (18286,6862,17335,17527,44867,44855,44669,18719,18427,44837,44870,44884,18650,18172,16885,44869,22509,19078,18572,17114,31354,17601,45346,43800,30986,39676,44894,44775,44685,45262,34194,18430,17278,10402,17756,6875,18185,45072,44671,16935,32454,17848,45177,45229,45277,18237,44861,28530,18648,5388,17771,45180,18794,44762,44853,44849,37057,45518,44845,18301,44854,17492,5993,24411,18900,18981,44835,44851,45421,28313)
Unknown column 'np.person' in 'where clause'