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 (4686,37267,44765,45177,44856,17601,16885,17703,44858,18650,18430,18900,18427,44671,18237,19078,17755,17556,45421,17009,37057,6782,24441,44685,17351,44875,44764,44867,45262,3883,19057,44739,18996,6862,30986,45517,44762,14402,13988,16935,45567,17981,14622,44854,44687,44869,17835,13922,13,6875,18981,17657,18652,24411,28313,18301,43800,44894,44745,5993,17492,24412,22509,44870,17904,44848,45072,17839,44878,17114)
Unknown column 'np.person' in 'where clause'