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 (9341,18286,45177,43800,44837,17335,30135,45346,18430,5993,44849,44762,44685,18648,6862,18353,45517,44711,45072,18301,13988,24411,30986,18185,45515,44865,16935,13425,44848,18794,44863,39676,36472,45518,18719,24412,44878,45262,44775,44875,28313,44851,4765,3883,45567,44764,44870,44669,17657,3,17771,17114,44765,17835,17351,17009,45229,18042,44739,17237,44745,14622,18446,45043,44894,44866,28530,18900,31354,18996)
Unknown column 'np.person' in 'where clause'