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 (13922,44878,18172,24441,16885,18894,19057,28530,18446,18427,44775,44674,44764,17492,18185,14402,45516,18688,24411,18648,17771,13425,45177,45515,4765,17601,6875,44711,44640,44671,44531,44739,18996,37057,5410,45286,18042,44849,18430,17981,3,44861,39676,30135,24438,13,14622,44685,44669,8753,44836,44851,44855,30963,17703,45277,17904,45346,22509,45518,9341,17351,45051,45229,45180,18900,44863,44865,24412,6609)
Unknown column 'np.person' in 'where clause'