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 (17771,17756,4686,44853,45346,18650,17904,5993,44845,28530,9341,19078,36472,17703,13922,44687,17527,44858,44866,44640,13,18572,45567,13425,18981,3883,31354,24412,30986,17848,44669,5259,44689,44863,18279,17657,45072,45051,18185,17278,18446,44865,34194,44711,30963,18042,44764,13988,17492,37267,43800,18894,44674,18900,44768,44531,44878,18286,17351,44739,17601,45042,24438,45517,44745,18237,45561,18648,45421,17009)
Unknown column 'np.person' in 'where clause'