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 (18650,18301,44884,17335,18981,17492,44766,17657,45515,6782,10402,17114,13425,17527,44855,44878,45051,44640,44762,18279,44863,4686,28530,32454,17092,18794,45518,16885,44745,18900,24411,44870,34194,18185,45042,44739,43800,45346,44531,45286,45043,3883,17756,22509,24441,44775,4765,16935,37267,45517,18894,44768,30963,18688,44866,31354,14622,44853,24438,24412,44687,44764,17278,45177,18648,17009,18042,19078,45567,44861)
Unknown column 'np.person' in 'where clause'