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 (18900,16935,45516,6609,44685,5410,17009,44861,45262,17848,44849,45515,14402,6782,17351,45567,44640,18894,44689,44762,44739,45277,44865,22509,14622,30135,17835,17755,24411,18427,44873,44878,3883,28530,34194,17556,37057,44868,5259,44711,30963,13922,44764,45421,13988,17601,18279,17839,45346,45043,44867,18353,18648,44853,44851,17771,44768,44845,24412,44745,4686,45051,17092,18981,17981,44766,44855,24438,36472,17756)
Unknown column 'np.person' in 'where clause'