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 (45346,18279,37267,17527,17756,37057,17092,44873,44685,18286,18794,18237,44865,39676,45567,43800,45277,17835,44674,44711,44868,44856,17848,44531,44768,44739,18688,17703,16935,30135,44745,44836,45072,18572,44851,17335,17839,45262,4686,34194,44863,18894,6862,45516,4765,28530,10402,44640,19078,45042,18648,17755,18042,17904,44775,44855,44869,18900,6782,18446,17351,19057,18353,18172,6609,17556,44867,18650,45517,45518)
Unknown column 'np.person' in 'where clause'