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 (24438,44863,44866,18572,30963,16935,17848,17351,17703,43800,18237,44768,32454,18648,13425,17835,24411,18794,24412,44674,18719,44765,18185,44868,44853,44869,44767,24441,44884,17527,17278,5993,45051,45229,44878,45567,5388,44870,44894,44845,36472,45042,13,28313,17755,44856,45177,17009,45286,17839,6862,14402,18427,44764,17756,44689,45516,3883,18042,44669,6782,45262,44640,18688,44873,44685,30986,44739,13922,45515)
Unknown column 'np.person' in 'where clause'