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 (8753,44745,17601,44870,13,17492,17703,44685,44869,44711,44875,45567,44853,3883,44865,10402,17527,44845,44878,44739,16885,18688,45516,44531,45051,5388,13988,44836,45262,44687,44689,44640,18894,18996,18237,28313,45180,18427,6782,17839,44856,44848,3,19078,44671,6862,44766,45229,18446,18900,18172,45518,17848,17756,18719,45515,6609,18650,45286,45072,14622,18572,45517,17278,24438,44867,44764,5993,14402,28530)
Unknown column 'np.person' in 'where clause'