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 (17237,30986,16935,18286,22509,44855,43800,17756,44845,45277,45177,17981,44837,39676,17848,19078,13922,44775,17527,6862,44711,44884,44853,18430,18648,44767,45072,3,44640,44868,45516,18446,44867,45051,44689,6782,14622,31354,17835,32454,18353,6875,44866,24441,44764,17492,44671,36472,13,44875,44768,45346,44869,30135,44854,18688,13988,45518,44865,18172,17839,30963,45517,24412,17114,44861,5388,18279,45561,8753)
Unknown column 'np.person' in 'where clause'