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 (44685,39676,44762,44845,44669,45072,44861,44640,44765,14402,6609,34194,9341,44671,28313,45516,44848,5410,44855,18650,13922,17756,17657,44868,45180,44745,10402,44687,44894,6875,18185,45346,17335,18427,45515,44875,18572,18981,28530,17009,45561,44856,18301,18719,44775,16885,6862,17114,45286,43800,18042,24441,13988,17601,44764,17771,44739,45042,17904,18996,17092,17278,19057,32454,44711,18648,5388,5259,18794,45229)
Unknown column 'np.person' in 'where clause'