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 (28530,16935,13988,13425,44848,16885,44855,17335,8753,45051,45072,45567,22509,14402,44851,44687,44853,17756,3,45518,19057,44837,37267,18981,44869,44873,18688,18042,44849,44685,24411,13,39676,45561,17755,18427,28313,6609,17657,44854,19078,44669,45043,45515,18794,24441,18894,44845,5388,45517,17092,5259,44894,6875,18279,44739,31354,13922,17839,18996,44689,17601,44868,44766,17848,44531,44711,24412,44884,18648)
Unknown column 'np.person' in 'where clause'