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 (10402,14622,44836,37267,17114,17601,44854,44868,17835,44837,28530,24441,17839,45516,45177,6862,45518,18652,44640,16885,44775,44861,44873,17278,17351,44848,24412,39676,44856,44853,17981,9341,44685,45421,18042,17527,5259,44768,30986,3,4686,45277,44687,44870,45561,43800,18237,5410,22509,17771,18572,44766,5388,44875,45180,17009,18894,17756,28313,34194,44849,44845,44866,18427,45517,32454,45515,44531,17556,13425)
Unknown column 'np.person' in 'where clause'