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 (44849,8753,18572,19078,18900,45277,44687,5993,17601,44775,44531,13922,17657,39676,44867,24412,17009,44669,17492,13425,44869,45516,18430,44689,5410,44711,45042,17703,17756,44762,18237,18427,44767,24438,18042,44858,45286,45262,17981,44868,44671,43800,18185,18286,6782,17755,44764,18794,9341,17839,45567,19057,17351,22509,3,44845,44745,17092,44685,44853,14402,44835,30135,16935,32454,44851,45229,6862,18719,17904)
Unknown column 'np.person' in 'where clause'