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 (44674,24438,19078,3883,17237,44853,39676,45516,18286,18996,17009,44894,43800,45180,10402,44867,45229,17848,18894,18981,28530,17556,28313,44836,45051,31354,13988,44764,44766,44685,17657,44687,14402,44640,45072,45515,45346,18900,44531,44835,19057,44855,16935,30963,17092,4686,18185,45561,18572,44869,24411,8753,6609,45421,44856,24441,6862,45286,44863,44739,17981,44865,32454,18427,17278,37267,22509,6875,44861,5259)
Unknown column 'np.person' in 'where clause'