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 (45346,5993,17237,16885,44858,17351,24438,3,37057,45229,45515,18572,5259,36472,44764,44669,32454,17527,13988,5410,18185,28530,28313,17601,13922,44766,44878,17839,44685,17657,17848,44767,18430,6862,44848,44854,43800,44835,18172,45042,45421,24412,18794,17009,44689,45517,30986,17114,18894,45561,45177,17755,16935,44674,24411,18688,44875,45180,45051,31354,13425,37267,18719,18900,6875,18996,44867,18427,44687,3883)
Unknown column 'np.person' in 'where clause'