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 (16885,24412,44765,44531,44878,19057,44762,13,45515,18981,31354,19078,6862,44869,44894,17981,17835,3,44685,18446,18042,45516,32454,44768,45051,14622,30135,18650,22509,44867,13922,44745,45042,24438,17601,14402,18301,44711,44836,6609,45072,44739,4686,44848,44674,30986,18719,13988,44835,17756,17556,43800,44865,28530,17237,37267,45561,10402,44764,3883,45043,37057,44689,24441,17771,18688,18427,44866,44767,45180)
Unknown column 'np.person' in 'where clause'