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 (17114,45072,44687,44685,18430,44894,44674,18688,44845,45515,18652,18172,44868,45517,45042,44689,44870,44837,32454,13988,44640,18719,28313,16885,17092,18185,13425,13,30135,34194,24438,18286,44711,44873,6782,44855,45180,17527,18237,18894,44531,44878,24411,17835,17771,18648,24412,44765,17601,18996,44739,45177,17492,18042,44861,19078,17351,45229,45421,13922,17278,3,45262,44853,5993,44856,17556,18353,44851,18446)
Unknown column 'np.person' in 'where clause'