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 (16935,44875,44894,44531,17657,45567,18572,44858,6609,3883,44739,17848,5388,44711,18185,44863,44836,45042,44845,44640,44762,45286,44865,44687,17556,45177,18286,18650,17114,45516,17237,45517,44878,6782,36472,17981,34194,13988,45518,44764,28313,18652,44685,17492,17904,24438,5410,44854,44884,37267,45043,30135,13922,24411,24412,44868,39676,17009,44856,5993,16885,44848,14402,18301,18794,44775,44674,44837,18279,4686)
Unknown column 'np.person' in 'where clause'