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 (45517,44711,45180,3883,24438,17351,13,3,45567,44669,5259,44865,17278,5410,44867,45042,44848,44845,13425,24412,5993,37267,18430,17556,44768,18427,44766,37057,24441,18900,17755,44836,17009,45515,32454,45051,17981,18719,18648,31354,17657,44764,30986,18981,45286,30963,17771,18301,30135,44856,13988,45277,18794,36472,18446,44875,17839,18172,17904,44689,17492,44671,44855,44869,17756,44531,44870,44878,45421,6782)
Unknown column 'np.person' in 'where clause'