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 (44836,44867,45286,17835,17601,18894,44873,24438,17657,18688,18185,44671,30986,17335,45262,6609,44739,44674,45346,34194,44687,44765,18286,44854,44865,45567,14622,17527,44845,18279,44711,9341,5388,18301,17839,44767,13425,44835,18648,36472,32454,45515,44689,17904,44884,18719,19078,45516,19057,22509,16935,44775,44856,44766,18430,8753,24412,44861,17703,17278,44745,18172,28313,18650,44764,44531,44768,18427,44869,24411)
Unknown column 'np.person' in 'where clause'