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 (44689,44868,22509,44865,17092,17756,44870,13988,6782,44869,39676,17601,18237,44836,19057,18900,45051,44854,44835,45286,5993,17657,24412,18286,44669,45421,43800,44762,5388,4765,17009,44739,44764,45515,45516,18894,14402,45346,18794,44711,16885,30135,18572,18279,44671,14622,18652,6862,37267,44851,44687,18430,17492,44849,44685,44845,45180,16935,32454,9341,45567,17981,44766,45042,44767,28530,18719,18650,17835,17771)
Unknown column 'np.person' in 'where clause'