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 (44711,6609,13,17278,32454,45262,36472,44884,44873,45286,24411,44869,24412,17527,44837,44870,6862,18981,44854,45517,44640,13988,37057,5993,44836,44762,18446,44894,18301,18652,44855,4765,45277,14402,18688,45516,28530,44687,31354,45515,17009,5388,18900,17755,44739,17703,39676,44765,44835,17904,18430,18042,17556,18172,44674,18353,45072,17848,18237,44863,10402,45043,44685,44845,45177,9341,44878,44766,44853,18648)
Unknown column 'np.person' in 'where clause'