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 (6862,44875,13425,44873,45286,5993,44766,8753,44858,19078,5259,30135,18237,17771,18042,17492,6875,17657,17527,44868,32454,45180,44674,14402,44869,44861,34194,17351,44878,17237,45262,17848,17981,18794,44894,17756,18279,44884,9341,18981,44865,14622,43800,17009,44671,45051,45072,45346,45421,44669,16885,17601,24412,10402,18427,18719,44531,45177,18688,30963,6609,45567,44837,44835,17092,44764,3883,45516,44689,18446)
Unknown column 'np.person' in 'where clause'