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 (30986,43800,18688,45072,17237,18353,37057,45177,45515,24441,45421,17009,45346,24438,45567,44861,28313,19078,45043,17839,44854,44863,45561,17601,18719,18042,45229,13922,18981,18430,44848,6875,19057,18894,44767,44851,45051,44873,44894,36472,17278,17092,31354,39676,17657,9341,44855,5388,44687,17904,44739,18286,18652,30963,44865,44765,14402,16885,44870,44884,44837,37267,44775,44531,44674,44845,3,45518,44669,10402)
Unknown column 'np.person' in 'where clause'