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 (44851,18650,10402,18042,18900,22509,18572,44873,18430,17835,5388,18286,18652,4765,18446,44856,17848,17839,17492,45051,44775,37057,18688,44858,18894,18427,8753,45516,44764,44674,18237,44845,13,13988,17114,6782,34194,6875,18301,44766,45517,17092,17009,6862,44768,45286,13425,44687,44836,44640,44866,44894,45043,44685,45421,44853,44865,3,18719,44867,44848,44869,4686,30963,24411,44531,24441,16885,17981,14622)
Unknown column 'np.person' in 'where clause'