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 (44745,3,18652,44856,44867,44640,17657,18042,16885,44687,5993,45421,44853,18301,13425,19057,17601,18172,24412,39676,44669,18572,45567,17755,44869,18719,5388,22509,6862,18237,18900,17848,44863,44685,3883,44765,14402,4686,18650,18446,44894,10402,17703,44855,44711,45042,18996,19078,44854,6782,18427,44671,17904,18430,17556,44775,44861,45286,44845,18185,14622,32454,44884,17839,45346,44674,6875,18648,30963,44764)
Unknown column 'np.person' in 'where clause'