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 (24411,45051,44745,18572,17237,4686,18427,45072,45516,44866,44671,45518,44836,32454,45262,44531,5410,17009,13,44687,37057,17848,44775,18430,45561,44863,13425,13922,17335,18237,18794,45180,36472,17756,17092,45517,44856,24441,31354,16885,44845,17278,44894,45277,44870,17657,45043,28530,44854,44669,18900,16935,14622,44873,17703,19057,17114,45177,44865,44640,44875,18648,45346,18894,18650,22509,17904,18446,44868,44858)
Unknown column 'np.person' in 'where clause'