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 (44775,45277,18719,17237,44766,18981,45043,31354,44884,45346,19057,44873,44868,44849,6862,45421,44851,44863,18427,28530,45051,44764,44835,6609,6875,44762,45180,45561,44878,3883,18652,44685,18353,18572,44845,44671,44687,45286,18894,44669,43800,44870,44861,37057,18042,17009,17278,18279,45072,44765,13425,17703,6782,24412,24438,44640,5259,18430,16885,44837,44739,10402,44531,44711,44855,17114,17981,44858,24441,44869)
Unknown column 'np.person' in 'where clause'