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 (6862,44848,44849,30986,44764,5259,17703,5388,19078,44711,6782,5410,44894,17527,45072,30135,32454,44861,44835,37057,17835,36472,45043,16885,6875,18794,4765,16935,4686,18172,18042,18301,18996,34194,44837,5993,44685,45051,18650,44671,17092,44765,17657,44767,44858,45277,44865,18353,18648,17848,8753,44854,17278,14622,44745,44775,18572,44689,44531,45421,44669,18719,24411,3,18900,17756,30963,44853,44766,17351)
Unknown column 'np.person' in 'where clause'