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 (44767,44870,18279,44865,44855,13425,44863,9341,44762,45229,44861,44858,44689,24412,44884,44848,44671,6875,17848,45177,13988,45286,44685,45515,44764,5388,18650,17657,18042,13922,45346,44674,6782,44856,19078,45262,17527,44868,18185,44836,37057,44531,17009,24411,18237,17703,5259,3883,14402,8753,44867,17237,17114,17756,18900,32454,30963,45051,18894,17755,5410,44669,44711,34194,18301,44869,18427,17556,44739,30135)
Unknown column 'np.person' in 'where clause'