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 (10402,18237,39676,44868,44768,28530,17351,45043,17237,17755,45177,18446,30135,44894,18900,8753,17981,14402,44745,44869,45229,18572,45567,18688,24411,44865,44775,24412,44685,17601,45518,16885,18652,17114,13,44689,45561,37057,18648,44835,17657,18427,13425,44765,44845,45042,17835,18430,45072,6875,43800,17756,17703,44867,17278,17527,4765,18172,32454,17839,44863,44766,44858,17848,45421,44640,44674,17335,44853,44856)
Unknown column 'np.person' in 'where clause'