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 (44711,45177,36472,17492,44836,45567,18794,45517,6862,45042,9341,18894,14402,45262,14622,44845,45518,24441,44865,13922,44894,22509,18981,44531,45051,30986,28313,17351,30963,39676,44837,44762,44765,45229,44835,37057,17755,45346,44849,13988,18572,45561,24438,18427,17756,44739,18446,44768,44669,18185,44671,18430,31354,45421,18719,18996,45277,17981,18286,18279,18172,44745,44855,44851,6875,17839,19057,44687,10402,37267)
Unknown column 'np.person' in 'where clause'