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 (18894,44764,17771,17278,44875,17755,18430,17756,18427,44640,44685,18353,6609,17114,17657,44851,44894,24441,18572,45561,17527,45515,13425,18900,44766,24412,18648,30135,44884,18996,44853,44845,18652,44739,24411,30986,44711,8753,45177,17335,44858,43800,22509,18719,44867,34194,17351,44671,18688,44849,18279,44870,44868,44768,5388,45518,44689,28530,44775,18301,45567,44762,24438,3,44836,17703,39676,44531,45286,44865)
Unknown column 'np.person' in 'where clause'