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 (28530,44863,18650,17835,18996,17756,19078,5993,18237,14402,6782,45072,45421,32454,17981,13,18652,44835,45042,5388,44845,18279,45262,44775,44745,18794,22509,45515,6862,44851,45518,44875,45516,3,17556,17657,34194,45567,44855,17351,45561,45051,44764,13425,4686,44837,44669,8753,10402,18430,44878,17092,43800,17703,44849,31354,44866,36472,44768,17755,44869,45286,24438,28313,18648,30135,24412,13988,44762,45177)
Unknown column 'np.person' in 'where clause'