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 (24438,44848,44875,28313,44531,8753,44764,44863,24412,45346,18446,44739,45516,44837,18648,28530,44873,44685,18572,17492,44870,44745,13988,44640,44854,45517,17703,18237,18900,17904,31354,18430,9341,44861,44711,45262,18279,45072,6875,14622,44767,3883,18353,30963,6609,44851,17835,44868,17771,37267,18894,37057,17092,6782,45277,16935,45051,17237,32454,17335,45229,44866,44845,18301,13425,45180,44855,18981,18042,17981)
Unknown column 'np.person' in 'where clause'