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 (24412,13988,44689,44848,44894,45286,44861,44669,45043,44884,17278,44775,44762,18650,45518,18652,44836,17848,32454,18042,17009,30986,17756,44671,17755,28313,18430,17492,6875,18894,45567,18572,44851,17771,18286,44867,44858,17237,44868,18301,37057,19057,17835,24441,44866,17601,18185,44849,34194,36472,45277,45346,44878,44875,14402,44855,17703,18279,44863,16885,3,31354,44853,18172,13922,18446,44711,18237,18688,45177)
Unknown column 'np.person' in 'where clause'