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 (44873,45180,34194,44765,18353,18185,9341,45517,19057,44853,17771,17703,45229,45518,37057,30963,45051,44762,44775,18286,44851,16935,44868,44689,4765,44867,4686,45262,17839,3,45346,17835,18900,5259,18981,44836,18042,17114,18237,17556,44669,44739,45561,44866,44849,17756,45516,17848,18894,45072,17278,18719,44869,18430,45421,39676,36472,44837,44711,44835,44687,44878,14622,17351,44865,44858,18650,37267,13425,5388)
Unknown column 'np.person' in 'where clause'