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 (18042,17848,18794,30986,17601,19057,44765,19078,44867,44768,44863,44775,18427,17556,45567,17335,17755,14402,44866,5410,6875,18688,13922,18279,18648,45177,18301,5993,17237,28313,44711,43800,31354,5259,45517,4765,18719,13425,18286,45515,18353,17839,24412,34194,44855,14622,44845,6862,44837,17981,18996,44674,44762,18572,3,44689,18446,13,17756,32454,18900,45516,44764,17278,8753,17904,44531,18894,44873,18430)
Unknown column 'np.person' in 'where clause'