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 (9341,22509,44739,8753,6875,44640,17848,18648,44775,31354,24411,17114,17335,18652,44685,44855,28530,39676,45042,17981,17527,30986,5388,37267,18430,18719,44768,34194,36472,44765,45518,44711,6862,44764,24438,17601,44869,44873,44689,45051,3,17756,18900,18286,4765,44878,37057,30963,45180,18427,44858,45277,44863,32454,44848,18237,45072,45515,44854,45561,19057,44766,44875,44687,17092,18279,18981,17278,44669,18042)
Unknown column 'np.person' in 'where clause'