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 (37267,44851,37057,19078,44863,17835,3883,17904,44775,44674,45567,44739,39676,18185,44858,44861,45042,6862,18301,3,17237,45421,44869,18353,17756,30963,17278,6609,17092,28313,18794,17755,17703,30986,44685,45518,17492,44745,17601,44766,18286,13988,44765,17556,45277,44837,45515,18650,14402,44870,45180,31354,44854,32454,13,44767,18894,13922,44764,17657,44845,18430,18688,18042,44856,17848,17527,44894,17009,36472)
Unknown column 'np.person' in 'where clause'