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 (44765,24412,18719,13988,9341,5259,13425,17009,18894,31354,44869,44775,18427,45515,17556,44835,44853,28530,30963,18981,34194,44865,18648,19057,44711,44687,44669,45043,3883,14622,4686,8753,24411,18900,45517,44671,44861,17527,45042,17771,44875,18794,5410,18572,44845,44870,32454,45518,44855,5388,17351,17848,17278,44685,17755,44836,18042,44894,45286,18446,17981,17092,4765,17492,44689,5993,17703,10402,44837,18430)
Unknown column 'np.person' in 'where clause'