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 (17009,18430,44851,5259,44845,45229,3,17657,44878,18900,32454,30986,18894,45421,43800,44685,44762,17092,17351,18652,44835,5993,18996,28530,18446,18794,44531,31354,24441,44869,45517,6875,16935,44894,17981,18981,45043,39676,44766,17114,17237,45262,18185,44775,18688,17492,44764,24438,14402,24412,10402,6782,9341,45072,44856,18650,44669,17703,18279,4686,22509,44765,18353,13988,45515,13922,44836,44848,44687,44861)
Unknown column 'np.person' in 'where clause'