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 (18279,17278,44875,17351,18286,13988,44837,5410,6782,19078,44669,18185,17601,18688,31354,37057,45515,22509,18650,18648,5388,5259,5993,45421,30986,4686,44745,18900,18237,14402,10402,24411,45346,19057,44858,44531,17839,44855,30135,18042,17756,44768,18719,13922,18430,44894,17009,44849,24441,45277,17492,18301,4765,44853,44764,44689,17657,18996,44685,44851,24412,17981,44767,17771,45051,44711,44687,16935,24438,8753)
Unknown column 'np.person' in 'where clause'