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 (45286,18279,44870,30963,37057,45515,44869,3883,44767,18185,13922,44674,45567,17351,18900,45180,44863,4765,17492,18688,17756,45072,45561,45517,44689,28530,16935,18286,17092,13988,45346,18648,3,44866,44845,36472,45043,5259,45229,45421,6782,44766,13425,18237,44836,18894,17335,45516,44739,24411,17237,17009,44856,44837,45518,17835,6875,45042,17657,43800,6862,17755,24441,6609,44855,19078,44685,44854,18996,45177)
Unknown column 'np.person' in 'where clause'