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 (45177,44674,44861,16935,44837,30986,44835,5993,6862,44836,39676,44867,45051,44745,18430,44531,17114,17756,17904,13425,18572,17835,31354,44870,44855,44687,17009,17556,13,16885,30963,44768,17839,44848,5410,17755,18981,32454,17527,9341,45042,45515,18719,24411,22509,17492,10402,17237,44765,8753,43800,18301,45072,17335,44863,45516,44851,44739,44873,17092,44849,18996,37057,44858,17981,4686,44866,34194,18185,45561)
Unknown column 'np.person' in 'where clause'