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 (17278,39676,6862,44837,18353,18794,24411,17771,45229,17556,17092,44867,18648,44865,17492,4765,18172,44863,44873,18279,9341,16935,45072,17237,8753,17835,18237,34194,30135,45277,44685,44745,28530,45180,18981,36472,14622,45567,24441,45042,44866,18430,10402,44853,17351,31354,18572,19078,18652,30963,44671,44848,45286,6782,30986,18688,24412,44764,13922,44762,44640,45518,17009,13425,45043,44869,17657,5410,44767,17755)
Unknown column 'np.person' in 'where clause'