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 (17848,18237,44775,22509,17839,44767,18648,3,44836,44875,44689,45516,17657,18446,17492,44854,44766,17527,6862,45042,16935,44851,45229,44745,44687,45043,44867,18185,44863,31354,44762,6782,24441,45421,4765,10402,17835,44855,44878,44671,17114,30986,13,18900,18353,19057,39676,44894,30963,30135,44865,17237,32454,17703,34194,45518,6875,44669,14622,45567,18572,18286,44848,4686,9341,18719,44858,18652,18430,3883)
Unknown column 'np.person' in 'where clause'