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 (45262,44855,4765,44878,44766,44854,44861,44669,6782,44853,19078,3,18996,44863,45518,45072,45229,45561,45421,45517,24441,18794,19057,16885,44765,31354,44739,18353,44674,44775,18688,16935,44848,44884,44849,18237,17335,44875,13,44687,17009,17835,5410,17657,45346,5259,36472,6609,34194,44845,45180,13425,44865,18894,44640,6862,17848,44836,37267,45277,45177,17114,14402,45043,17278,18648,17237,10402,44685,5993)
Unknown column 'np.person' in 'where clause'