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 (34194,22509,44711,44837,44767,6609,6862,45177,19057,44894,17756,44531,18172,17981,45517,8753,44674,5388,16885,17755,18572,17237,31354,18996,9341,44768,32454,17114,17527,18427,44845,44848,44854,45042,18894,44669,45051,45515,44762,44865,5410,45421,44835,44836,44739,30986,44884,5259,45518,24438,18301,18794,45072,44766,28530,45567,18185,17771,18650,17556,44775,44858,44868,45277,17601,18652,18446,45286,18688,18286)
Unknown column 'np.person' in 'where clause'