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 (30986,44894,18430,44851,45277,17527,4765,44711,17556,18648,17601,44845,44764,44674,32454,44848,45421,6875,30963,22509,18042,17771,45567,45561,39676,16935,44739,44855,16885,44869,44868,17981,17835,5410,45051,14402,44765,44878,30135,44531,18981,3883,36472,45177,19057,17756,4686,44835,44687,44775,5388,43800,44870,17278,44836,44854,18894,44865,18688,44689,24412,45072,45042,18572,17703,44669,17009,45229,18185,17335)
Unknown column 'np.person' in 'where clause'