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 (18650,44835,18172,13922,14622,44845,44739,39676,19078,17703,44865,18185,18279,19057,18981,34194,44854,43800,17835,17237,44870,17009,44689,10402,24411,44711,44875,18572,44745,17092,44869,44836,44775,30963,44837,44848,37057,45516,13,45286,3883,44671,44764,45180,44766,17839,44856,44853,9341,18301,18648,5388,5410,13988,18794,28313,37267,17848,18286,18900,24412,45517,22509,45177,45051,18237,4686,31354,17601,45567)
Unknown column 'np.person' in 'where clause'