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 (17335,44861,22509,4765,18042,44674,14622,44640,44853,44764,18279,17835,17527,45262,39676,18572,18648,31354,44856,44775,44849,45517,3,18301,19057,44878,44870,16935,45229,13922,44854,45515,45043,18652,44835,44739,44685,30986,44836,24438,45177,44867,18237,44765,45051,44745,44884,18446,18719,17848,44671,8753,44845,45421,17601,17237,24441,44762,13988,44851,18794,18650,36472,32454,44669,17009,18172,17092,44894,18981)
Unknown column 'np.person' in 'where clause'