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 (18794,44685,30963,44868,44775,19078,17527,44867,44767,18172,30986,18719,18894,45072,18042,6609,44873,16935,13988,18353,6875,5410,3883,45567,5388,18279,3,24412,17703,5993,18430,18572,18301,44836,45286,17657,44855,13425,45421,24438,17756,17556,44671,45177,45042,44669,16885,44689,45229,44739,44745,44764,17009,17981,44768,17351,18652,18286,44765,17492,17835,6782,18981,44835,44866,45516,28530,24441,45518,44865)
Unknown column 'np.person' in 'where clause'