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 (30963,45180,17981,18279,17527,44739,45515,44858,6875,18981,30135,18427,43800,17351,18652,18353,28313,17492,24441,44669,18996,44875,18237,44873,17657,44671,45177,37057,44867,18894,44855,45042,17278,45072,44869,6782,44878,6862,19078,44689,45286,3,5388,18650,44775,13425,44884,10402,14402,44531,17237,17601,19057,4686,44868,18719,17092,13922,18042,44894,17848,24412,13988,45517,16935,44854,39676,17771,18794,44856)
Unknown column 'np.person' in 'where clause'