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,44845,3,44762,24411,44687,45180,17755,45177,8753,18981,14622,45286,10402,18185,44854,18572,17092,45567,17527,44766,44711,19057,44873,13922,13425,18652,44765,45515,44866,6875,44870,17703,9341,17009,24441,18996,18900,32454,17351,18279,17114,39676,44689,30963,44775,13988,44848,43800,37267,17278,17556,44640,37057,17492,45277,44861,22509,44851,44836,18650,45517,6609,4765,44849,16935,44867,18237,45561,18648)
Unknown column 'np.person' in 'where clause'