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 (18688,13922,4686,17756,45516,17527,18996,18648,8753,24411,39676,18353,17351,18172,45229,9341,44762,18042,44858,44863,44669,17556,24438,14402,31354,30135,45561,18794,17237,17835,44671,45177,6862,44837,37267,22509,28530,17009,44861,44878,32454,13988,44767,17492,17839,18981,4765,30963,44739,44689,5388,17092,17114,44851,45515,17601,44869,44531,6782,44845,44835,19057,44775,3883,44768,44674,44884,17335,17771,37057)
Unknown column 'np.person' in 'where clause'