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 (17755,45567,43800,10402,28530,18981,45277,45051,45518,3,44765,17981,30963,45043,18572,34194,44766,44856,16935,44689,24438,6862,18650,44640,18648,14622,17839,24411,17771,44878,18279,18042,45561,44775,37267,18719,44866,44861,18688,24441,44685,17237,13425,17335,44711,30986,18900,4765,44865,44669,44855,44894,44764,44884,18652,44835,13988,44863,44836,28313,18430,17114,44853,5410,44531,17756,45072,18301,44674,18894)
Unknown column 'np.person' in 'where clause'