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 (6875,24441,44894,45042,45043,44764,44745,9341,5388,8753,5259,44669,6609,45516,17492,18794,44768,14622,17278,45229,24411,44765,28530,44685,44835,10402,44836,18650,13988,44689,45515,18427,44878,45518,4686,17009,44775,44868,17556,44865,17114,17092,44875,39676,44711,44855,16885,6782,13,44866,32454,44531,44671,17835,44762,18446,44869,3,17657,44861,5993,18648,36472,44687,18981,44640,18286,44739,45072,44674)
Unknown column 'np.person' in 'where clause'