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 (18900,6609,45561,44870,44768,24412,17492,44775,45072,16885,18650,45277,44640,6782,9341,18446,45346,17601,17839,45516,44765,44858,19057,10402,18427,37057,18894,13425,44863,44674,32454,45051,43800,44687,44855,45262,18279,17848,17092,18301,44766,45180,44762,17335,3883,24441,44856,5388,18981,5259,45517,44745,17755,44739,18286,45286,44671,14402,31354,18353,30986,17114,44531,18996,44853,16935,45043,17981,44669,44845)
Unknown column 'np.person' in 'where clause'