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 (45518,3,44870,31354,45043,44835,8753,44848,44867,17771,17703,28313,44884,6875,37057,34194,17009,18286,17839,18794,39676,44745,44863,44894,44671,17278,44775,4765,44768,32454,44878,44711,18427,24441,44687,44669,18042,45072,18648,17092,28530,30135,45561,44858,44766,45567,44861,14622,45421,44854,44689,24438,17527,5410,45515,45180,44767,18894,19057,17657,17904,6782,18353,13922,44739,45177,44873,44849,44869,13988)
Unknown column 'np.person' in 'where clause'