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 (44745,10402,18286,45180,44849,17657,45561,16885,17771,6609,44894,44835,17278,3883,45177,13988,6782,13922,18900,45518,17839,6862,17237,44775,18353,45286,45515,18427,18446,18650,18237,17848,5259,44867,45229,14402,13,44865,17351,14622,44689,18279,5410,45262,18719,43800,44674,44766,44868,45043,18688,36472,44671,45042,24441,18572,5388,39676,30963,17556,45567,3,37267,13425,17756,44669,17981,17092,18185,17904)
Unknown column 'np.person' in 'where clause'