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 (44836,18286,18572,13,3,44855,16885,10402,44866,44870,28313,13425,44671,45229,18172,18427,4686,17771,44837,44845,45180,44674,45518,44687,17114,45561,22509,6609,17703,44863,17351,44768,44835,31354,45286,14402,18430,17756,18996,18981,45177,18279,44869,32454,44765,45072,45042,45262,44875,14622,44867,37267,24438,6862,17092,17848,17237,34194,17657,18042,44640,45421,44775,17904,44861,45277,17835,5993,18900,28530)
Unknown column 'np.person' in 'where clause'