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 (14622,6782,18572,19078,45517,6862,36472,17839,45072,44863,44875,18652,5410,3,4765,18430,44745,44767,17278,45516,17848,44837,44836,45262,45051,18648,5388,17351,13425,44674,18900,13988,44764,18794,9341,44854,17657,24441,44894,44868,44851,44849,44775,18688,45515,10402,16885,45346,45229,17835,17009,45561,31354,22509,44768,17527,30986,44762,44848,32454,17703,44853,30135,45421,13922,44739,44866,18353,44640,19057)
Unknown column 'np.person' in 'where clause'