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,17237,44868,18650,44861,44848,17278,28313,18301,39676,17556,45262,18172,45421,16885,44863,17835,45561,18430,6862,44531,18719,5993,17492,18286,44854,30986,45346,18648,45051,13922,44768,44767,17092,44869,44878,18652,30963,44873,6782,5388,44687,44775,24411,18981,18353,28530,44855,44865,18894,6609,5410,45567,44845,24438,45072,9341,17755,44685,44640,18185,17009,17351,44671,44669,3,8753,44674,45177,45180)
Unknown column 'np.person' in 'where clause'