Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (45072,34194,18900,43800,14622,6862,18042,24412,44835,24438,5410,44865,18894,18648,18172,17009,5993,44767,44775,17756,13,17981,17601,44868,44768,31354,44894,44848,32454,45567,45177,45517,45346,6782,6609,18572,44674,45421,45561,44851,17351,44863,17703,14402,4686,17839,13988,19078,18981,44687,18185,45229,17237,44873,18430,6875,45286,24441,45051,10402,45277,5259,45518,19057,39676,18279,16885,44855,17335,37057)
Unknown column 'np.person' in 'where clause'