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 (44851,17556,44853,18237,6875,18652,44836,44854,18042,14402,18301,45180,44870,16935,44745,44531,44837,19078,14622,31354,18279,6862,44764,44835,44671,45277,16885,44855,5388,37057,17703,18572,17601,18688,17771,18894,44873,44867,17009,18648,4686,5410,17755,13988,44711,45517,44869,24438,18446,45518,44858,44640,44687,45042,45043,44762,44845,4765,9341,17492,36472,43800,22509,6609,18430,18981,45072,19057,44767,18719)
Unknown column 'np.person' in 'where clause'