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 (44878,17756,17527,44674,37057,17335,19057,17278,44894,45346,44875,44531,44766,32454,45180,6862,19078,44868,18279,18650,34194,44775,45177,45286,17771,44689,44848,18648,18427,44669,45042,17092,13425,18894,30963,13922,31354,45051,18237,44671,44856,17755,45421,17237,44866,45262,3,5388,45043,45072,24412,4765,17835,44853,44836,39676,13988,44711,18652,17114,30135,5993,17848,18900,44835,44768,45229,44764,24441,44745)
Unknown column 'np.person' in 'where clause'