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 (43800,8753,3,44866,5259,30986,18719,18572,44858,32454,14402,18446,45286,13922,18794,5410,44531,13425,45517,45042,19078,17835,17981,44878,44762,44669,18427,44837,6609,44739,6782,17755,45515,44845,24412,45229,18688,44768,45346,44671,16935,18237,44674,17278,24438,16885,44861,44875,30963,18648,17114,44836,6875,17756,44855,34194,17527,44867,45177,44849,44835,17237,17839,44856,44640,45516,18900,14622,6862,45072)
Unknown column 'np.person' in 'where clause'