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 (18353,30986,44640,17527,17835,18279,45177,18794,18446,45229,44854,17092,44711,6862,44861,44768,45515,44878,3,44764,44870,44855,17556,37267,44687,30963,44894,44849,31354,44873,18237,10402,24441,45262,4686,18301,17755,17771,44856,24438,16885,18042,18688,44836,13425,17278,44762,44848,5410,44766,45180,18996,44868,43800,44865,19057,44767,17351,13988,16935,18719,17114,6875,19078,18894,4765,17756,44531,5993,18981)
Unknown column 'np.person' in 'where clause'