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 (30135,45346,44873,45516,44669,3,44866,44689,44845,18430,17703,18652,45072,17756,17771,45042,17527,30963,14622,19078,45567,44766,39676,13,44854,18446,44868,10402,13988,44863,44687,17278,17657,45515,3883,44762,18301,18237,14402,44865,28530,6862,18427,18996,18353,8753,44775,44853,17009,17981,44894,44836,45177,17601,17556,44640,13425,44869,16935,4686,17848,5259,44837,44711,18648,6782,5388,17755,44856,44878)
Unknown column 'np.person' in 'where clause'