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 (44531,17755,6875,18652,45561,17009,18719,45421,5410,44869,17771,17756,45043,14622,5259,13988,22509,18572,45277,4686,39676,44855,5993,44766,24412,17657,45518,17092,8753,37057,44856,6782,44739,18185,18900,44685,28530,44848,44858,18648,18981,45229,45286,44837,3883,17848,18301,17114,30986,17601,44861,13922,44640,31354,17351,44711,19057,19078,34194,17492,18427,44689,44674,44687,13,44745,17981,6862,17527,45516)
Unknown column 'np.person' in 'where clause'