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 (17755,13,17904,44868,39676,9341,17848,18446,17237,44861,45177,44768,44878,13988,17756,44835,18996,18279,8753,44669,45518,44745,44866,45516,6782,44848,18650,17657,45043,44837,44689,44766,44884,18894,18237,45515,4765,5993,17601,18430,6862,43800,5388,19057,17335,45517,44863,18572,18719,17351,44845,14622,18353,44853,44671,17492,24438,30963,45042,18301,18042,44858,44531,44869,4686,45561,44865,16885,17527,28530)
Unknown column 'np.person' in 'where clause'