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 (13425,44674,32454,16885,17278,45043,44766,18794,18894,9341,45229,31354,17009,17601,3883,44640,17703,18427,18301,45518,44687,18185,45346,44685,44835,44894,45561,44855,44853,13922,44875,44768,28530,45567,18688,45517,8753,17092,45515,44867,16935,44884,18652,44765,5993,45051,17839,17114,24412,44873,44863,18719,44767,44745,5259,45177,44865,18237,24441,17492,36472,30135,17351,6609,44868,43800,44764,37057,17756,44851)
Unknown column 'np.person' in 'where clause'