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 (4765,18427,44685,44894,18650,44531,44687,4686,44766,44767,30986,44855,18286,17601,18042,18648,18430,9341,37057,44689,3,13425,45516,44873,44875,45421,6875,17092,8753,17771,6609,17492,13922,43800,45517,44765,18981,45515,45042,17835,17981,3883,22509,44835,17237,19057,37267,45277,18446,5410,17839,18172,18279,17703,17009,44745,44775,44762,18894,5993,44866,44865,44858,44853,44836,44711,17756,17848,44869,18572)
Unknown column 'np.person' in 'where clause'