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 (28313,17237,32454,45346,18648,44849,5388,44884,4686,24411,44845,10402,17601,44865,18900,44687,17657,44640,44867,17009,44875,18427,44767,18279,36472,44836,18042,18652,45042,17492,45518,17092,13,18894,24438,44768,45043,45561,45262,18719,44764,44685,5259,44765,16935,18237,18650,45229,45516,18572,44669,17556,24412,17835,9341,45517,44689,44853,18430,44854,13922,18185,17351,34194,13988,44848,17756,18172,44868,44861)
Unknown column 'np.person' in 'where clause'