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 (44875,45072,18900,44869,28530,6862,44849,43800,18446,14402,45516,18279,44835,44671,44739,45043,17755,18430,45567,44775,44687,45518,3883,45262,18650,18688,44863,44711,44531,44640,24441,44765,32454,17771,44674,18648,44853,17492,13988,17848,16935,13922,22509,24411,44836,9341,28313,17904,16885,5410,36472,17335,17657,30986,44768,6609,44870,18794,5388,34194,45346,17009,17278,44685,44764,3,44884,44745,31354,17835)
Unknown column 'np.person' in 'where clause'