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 (30986,6875,45286,6862,17771,44669,45180,17848,4765,44767,19078,44775,19057,17601,6782,45516,45262,13,45051,17981,24438,44531,44768,44711,44739,45277,44863,17351,17835,17114,5388,44845,24412,44866,5993,44853,45346,17755,18996,44878,24441,44854,44766,28530,18430,6609,18286,31354,17335,18237,44865,44858,45561,18650,44875,18572,32454,45177,44849,37267,44848,24411,5259,18042,17009,44870,44867,18301,13425,28313)
Unknown column 'np.person' in 'where clause'