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 (17839,17848,30963,45421,44669,44775,18688,24412,19078,44873,18719,44861,44765,18894,6862,45346,44531,17009,13988,18430,44671,17657,18279,44836,44868,19057,44685,4765,44674,44867,44869,14622,6609,17771,16885,44687,44711,44875,17601,44835,44884,16935,44767,5410,44762,45262,18650,18900,18572,9341,45180,32454,6875,3883,17756,18301,44858,13,18185,8753,45229,18652,3,45042,43800,45051,45277,17527,17556,39676)
Unknown column 'np.person' in 'where clause'