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,17237,17839,17092,17527,18286,45421,44866,44765,45043,18572,32454,3883,44869,45518,5259,4765,17492,6782,17848,13922,44766,31354,18981,44685,5388,44865,18427,44768,45277,44775,44856,30986,45561,17703,44845,18301,44711,5410,18172,44855,18900,28313,18430,45051,4686,30963,18648,45516,18650,18237,16885,3,17981,24412,44669,44878,17657,45229,16935,44745,44687,17756,22509,14622,45072,6862,45567,44689,17009)
Unknown column 'np.person' in 'where clause'