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 (44867,44866,17835,44685,17756,45072,44854,24441,44849,8753,18648,44674,24438,17703,18652,6862,16885,45346,44894,28530,44669,39676,45561,17527,44764,44851,44837,44689,44775,18430,17981,17755,18353,18688,44836,44853,18286,16935,18981,22509,17492,17351,44766,32454,9341,18446,18301,44873,44762,45516,5259,44767,30963,44855,45180,31354,44835,6782,24411,5410,45515,17848,44865,18279,17771,17601,18185,18794,18572,14402)
Unknown column 'np.person' in 'where clause'