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 (44531,6782,30135,44867,44762,44875,44768,44685,44873,28530,44739,3883,13,44711,4765,45072,45346,17556,44745,44671,6609,5259,45421,45229,44845,18185,44851,34194,37057,13988,45567,44868,9341,24412,45043,17904,45518,45042,17527,17492,17755,44689,30986,31354,44861,6875,6862,24438,44836,18353,17009,44764,18981,18996,44858,45517,30963,45516,44640,45515,43800,37267,17771,17278,32454,17839,44775,14402,14622,18172)
Unknown column 'np.person' in 'where clause'