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 (5259,18894,30963,18652,17771,4686,18900,45072,13922,17755,18042,44739,18446,31354,44764,24411,45043,22509,39676,3,18572,44836,19057,45229,16935,6782,17556,18172,18185,18353,44674,4765,45346,45517,44766,44875,17835,44870,17492,44775,17839,44865,3883,45515,13,10402,44669,17237,44884,44855,44869,44849,24438,44767,18430,17601,17848,14622,6875,5388,17527,44687,44856,18427,44866,44854,44835,18719,45277,17703)
Unknown column 'np.person' in 'where clause'