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 (19057,45072,17755,18427,44851,18894,18446,18430,32454,17904,17839,18572,45043,44865,45286,44765,44858,13425,6862,44837,44640,24441,17835,44855,44762,44767,43800,18185,6609,17009,44835,44849,44863,44739,17237,4765,45346,14622,14402,10402,44867,34194,45561,5410,37267,5388,44894,6782,24411,44884,44869,18353,24438,45567,44875,44766,13,45516,18650,44878,44856,18172,44848,44868,44669,6875,16935,17756,5259,44845)
Unknown column 'np.person' in 'where clause'