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 (44674,18794,6609,18981,17351,17009,44858,44869,45515,44868,19078,16885,17601,18446,44894,37057,44685,44765,44870,44739,45277,18996,14622,44836,18648,44873,6875,18185,5388,45051,28530,44865,45286,44837,30963,18353,45561,45421,45567,13425,45043,17278,17092,31354,17839,5993,13922,18172,45517,17755,24438,17492,44855,16935,44856,44867,6862,3,4686,5410,24411,44766,28313,18650,34194,44767,44775,45518,17703,18430)
Unknown column 'np.person' in 'where clause'