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 (17657,44851,30135,4686,44835,45180,18042,44762,28313,18446,44685,18650,4765,44775,44875,44767,44866,18427,18688,17351,10402,45561,18237,18648,17756,44854,17492,6609,44845,44878,44867,45229,45277,32454,22509,17092,5993,45515,18652,3883,18981,18719,36472,44745,44863,30963,17278,44768,30986,17835,17981,31354,39676,6875,44674,13922,44837,37267,45346,44766,34194,17755,5410,44687,44739,19078,17556,43800,8753,16885)
Unknown column 'np.person' in 'where clause'