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 (45421,44687,44835,44685,45346,45180,44768,44531,17703,5993,24412,18650,44861,44775,17278,17835,45262,17237,44669,18446,45229,13922,45042,39676,28313,44640,18042,44863,16885,17009,13988,32454,6782,44836,44873,17556,3,44858,18652,16935,17848,17492,18279,4686,44894,18572,17904,44868,13425,18996,45177,17527,19057,45515,34194,45277,6862,17657,17981,18237,3883,44866,44884,19078,45043,44745,18430,45567,43800,18900)
Unknown column 'np.person' in 'where clause'