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 (44861,22509,44768,13,24412,16935,18719,45421,44867,45516,45262,45346,16885,44845,18430,18185,17351,44869,44767,18648,44671,18237,6782,45042,17278,18427,44766,17492,24441,45567,6862,44685,17601,44873,13988,44669,44764,45229,44762,9341,44836,44687,17556,17527,30963,3,14622,30986,6875,18894,6609,45051,44835,44765,31354,44775,18981,19057,17771,44863,45286,44674,5410,44856,45518,5259,8753,24411,3883,18996)
Unknown column 'np.person' in 'where clause'