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 (44858,44870,18650,36472,45180,17492,17756,45515,17556,18430,31354,18279,44865,45229,44854,44711,44765,44745,44766,45072,45051,17848,45042,18172,45286,44674,13,24412,45262,44849,24441,45277,44837,43800,30963,18719,16935,44685,17601,44856,28313,22509,44689,17351,34194,44873,44767,44894,45516,44671,44866,18652,18237,24438,37267,18301,45518,45567,44884,17835,10402,6875,32454,17703,45177,44878,17278,44687,45346,6609)
Unknown column 'np.person' in 'where clause'