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 (18794,45180,45277,44856,44766,17237,32454,44870,31354,18900,44711,44855,16935,18286,22509,44762,45561,44868,17009,24412,18353,37057,18237,10402,6875,44764,44875,28530,14402,44768,44835,6782,30963,45042,45043,18279,28313,18572,4686,18719,17848,44531,44775,43800,44866,44851,18981,17278,24441,6862,17756,44849,3,18301,17904,36472,44873,44837,18648,17092,18446,18042,19057,30986,44848,44863,16885,18996,45262,17492)
Unknown column 'np.person' in 'where clause'