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 (44669,17703,14402,17237,3883,44845,18648,37267,24412,18427,18237,44854,44865,44685,44836,5410,44848,44687,44856,16885,17771,44867,45177,44849,18279,18894,44873,18042,5259,9341,45517,44689,17835,39676,44837,17492,44766,45072,17527,44894,18185,19078,14622,44853,28313,45518,17981,13,10402,6875,44875,17556,30963,44764,44775,30986,17755,44640,44762,17657,44674,17848,17351,18981,18301,17756,44765,45229,18650,45262)
Unknown column 'np.person' in 'where clause'