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 (17556,44855,44878,45177,44745,45072,39676,17839,28530,6609,44856,3883,44867,44837,45277,6862,18185,45180,44674,44669,13922,5993,6782,44868,18172,18446,44768,3,18237,13988,44685,18900,17601,17703,16885,44861,45567,44739,18279,45043,18572,14402,45346,18650,18794,44858,44531,5410,44854,14622,10402,18042,18996,44765,18301,19057,45515,43800,17114,45051,31354,18286,45518,32454,44671,18894,24411,44767,17848,37057)
Unknown column 'np.person' in 'where clause'