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 (17839,44767,18430,32454,44762,17703,43800,18688,44861,22509,18996,44764,44853,17981,18427,44768,44685,16935,44858,44848,24438,44867,44884,44856,18650,14622,17527,18446,44865,18719,30135,13425,5993,8753,3883,17009,6862,5388,44671,45286,44863,18652,16885,44674,44869,44837,17556,44765,18894,17601,45229,44835,6609,44689,18042,44531,18286,17771,44640,45051,39676,18353,45043,18237,45072,44766,4765,36472,31354,44878)
Unknown column 'np.person' in 'where clause'