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 (3,18794,18719,44853,18446,32454,17278,5259,17981,44869,44835,28530,44674,18172,22509,14402,17009,17839,45518,44873,44764,44671,45515,44745,18648,13425,18353,45286,44765,44711,44531,18981,45042,18042,17835,44858,45072,6875,45262,45177,45277,44867,44854,31354,45051,5388,44856,30963,45517,17556,17703,18894,44836,44685,44875,45516,44739,45043,18279,17114,14622,6609,44855,44870,18996,17527,18688,44640,44878,43800)
Unknown column 'np.person' in 'where clause'