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 (5410,44858,44853,24438,18353,44764,45561,17351,17492,18650,18572,6862,44870,44894,19078,4686,18900,8753,44687,30986,45229,45051,14402,17703,18427,45043,19057,13,45516,3883,45072,34194,18648,17904,17114,44775,18430,44869,28530,16935,45262,44845,44875,44873,17527,30963,44669,44531,44765,17835,37057,18981,17556,5259,45518,13922,18279,17848,17278,44689,45515,37267,44674,18042,18172,17657,44866,45286,18446,17756)
Unknown column 'np.person' in 'where clause'