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 (44851,44640,44687,13922,18572,44837,45518,18172,43800,17756,44868,44856,44884,16935,10402,45421,17981,17492,44775,31354,44836,17904,44674,18042,45177,17556,44835,14622,45180,44869,45567,36472,44854,44861,24441,18794,24412,34194,45286,44671,13425,3,6782,44875,18185,32454,28530,17657,44765,44845,45072,18430,44768,18719,44764,44849,18894,5993,18900,17092,17009,18650,18427,6862,44855,13,45346,4765,17527,16885)
Unknown column 'np.person' in 'where clause'