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 (44640,44671,44853,18286,8753,17904,44669,39676,44711,45177,18996,45180,18430,17278,44851,44768,5993,5388,24441,44775,10402,6609,44766,5410,18650,19078,6862,18900,30963,13922,44845,45561,45517,44894,24412,32454,44531,18648,44855,18572,44875,44849,17009,14402,13425,13988,44865,28530,31354,44861,45515,4686,44739,24438,44687,3,17237,44869,43800,17756,44762,18172,44764,44767,24411,18446,44685,45262,45072,45346)
Unknown column 'np.person' in 'where clause'