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 (6862,18900,44775,18237,44868,16935,22509,45177,18446,44867,45515,44745,44837,44849,24441,18648,13922,45561,18353,44865,18688,6609,19078,44671,18427,5259,44674,37267,18996,30963,6782,17601,44856,32454,18981,44870,44669,5388,3883,44762,10402,17009,16885,18430,17278,44854,5410,44764,17981,44687,45421,18794,3,44739,17092,24438,17848,45567,17835,17556,44851,17839,44875,43800,31354,19057,44845,44858,44855,44866)
Unknown column 'np.person' in 'where clause'