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 (44849,22509,44837,45177,4765,18719,44765,4686,18286,17114,28313,31354,44869,17756,13,37267,5410,13988,17904,13425,44848,24438,18185,44767,10402,30986,17009,16935,44739,43800,5259,18652,44669,17657,44671,44685,45567,18648,5993,18353,44854,18172,18042,44884,39676,44875,24441,45277,32454,44867,44674,18279,17981,45517,44865,24412,44745,44863,17839,44858,6875,45072,17601,17771,18430,19057,17237,17351,44689,44768)
Unknown column 'np.person' in 'where clause'