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 (17981,45262,18286,44768,44764,44848,37057,45516,45229,18981,44878,17756,9341,19078,45421,44835,17601,44674,17556,17351,17092,18042,44884,17755,44853,19057,17703,17848,18894,17492,6862,45561,17657,44739,24412,44867,18650,36472,18353,45286,13988,18172,44531,17835,18572,44861,44855,44685,13,45567,28313,17278,5259,6875,18794,18688,24438,5410,44854,44849,18996,44865,37267,3883,45042,28530,44869,22509,17839,44868)
Unknown column 'np.person' in 'where clause'