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 (17981,45072,18446,24411,17904,17703,18688,28530,17556,44856,45567,44687,18301,18648,19078,6782,45043,17657,4765,18042,44855,45421,16885,24412,45346,44531,45180,45516,44861,17114,17756,45177,30963,44739,44835,18652,5993,17492,45277,5410,17601,18996,44837,17527,44767,44775,30986,3,18172,24438,5259,4686,18572,45262,45229,37057,18286,18237,44685,45051,18427,44845,17771,44873,44894,44669,45286,44671,16935,44865)
Unknown column 'np.person' in 'where clause'