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,45051,28313,44867,44765,44836,44711,44762,32454,17848,17755,17771,5410,17703,6875,18353,19078,5259,9341,24441,44640,30135,45561,39676,17657,17981,44861,45518,18042,18446,45517,45042,16935,44875,3883,17839,44768,44687,44745,18996,45567,45262,22509,17351,44873,17278,44845,18981,45346,44868,44531,44865,18652,44848,44775,24411,44863,45421,17904,44669,44894,44884,17556,13,17237,19057,30986,13922,17114,44854)
Unknown column 'np.person' in 'where clause'