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 (17601,37267,44873,18981,45177,44766,44531,44863,45042,17839,30135,18446,18688,44868,39676,16885,45561,18900,44867,44685,6782,17492,44745,44869,18279,17278,45229,17756,17835,45517,44845,3,44855,44739,10402,44767,18430,24438,18996,44835,24441,36472,45346,13922,13988,17335,45277,18185,18286,17848,32454,44836,14622,44768,44837,44851,17556,8753,6609,17771,28313,45518,14402,19057,18572,44861,28530,18042,44866,44765)
Unknown column 'np.person' in 'where clause'