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 (17351,44894,45518,18900,45051,16885,44775,44764,17009,44765,19057,44865,24438,44861,17492,17771,18794,18430,16935,45567,6609,44875,44689,44845,44745,44766,45180,44836,45421,17114,44849,6875,3883,17848,44868,18237,14622,44531,5259,22509,17703,45517,44873,13922,18286,44855,3,17755,44671,45561,17278,18301,18353,45177,5410,44762,44835,17237,18042,13425,30135,9341,44866,44863,18981,17756,18650,45043,24412,44867)
Unknown column 'np.person' in 'where clause'