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 (17237,18894,17335,9341,4765,3,45277,19078,44837,13922,45043,5388,17848,45346,10402,18572,16885,31354,44739,44687,34194,17278,37267,22509,3883,44745,44854,45177,18427,44861,44884,18652,18185,44873,44531,18688,18981,39676,45515,6782,45229,28530,28313,44855,45180,19057,8753,5993,17657,17981,44762,17114,18648,13,44674,44767,6862,44845,17009,32454,45517,44894,18794,17492,43800,17527,44640,14622,44671,44765)
Unknown column 'np.person' in 'where clause'