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 (45518,44764,44856,45346,14402,43800,18042,39676,44835,45567,17981,44869,6782,18981,5388,44867,19078,44671,13988,44845,28313,44861,44689,44739,44685,18279,44768,30963,28530,17601,24411,44865,45072,17771,13425,13922,44875,18185,30986,44894,44640,17755,17351,18719,17835,44866,14622,44858,5993,45277,44745,17092,45177,44765,44837,44884,44855,16935,45517,16885,44674,18430,19057,18900,44775,45180,44854,37267,24412,17278)
Unknown column 'np.person' in 'where clause'