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 (18572,45516,17755,44775,6875,44767,17839,45277,30986,45515,31354,44845,45180,4686,45567,17771,37057,17351,17114,45072,44869,44745,6782,24412,18794,44764,45518,18042,18446,17835,18688,32454,45042,44866,44855,43800,45262,44865,6609,44875,18652,44762,17657,44739,45286,45517,17009,44873,28530,5410,18719,6862,18650,44689,17492,37267,22509,17981,18648,44835,44671,17556,44669,13922,44868,17601,44861,44848,19057,44849)
Unknown column 'np.person' in 'where clause'