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 (44836,13,44868,44851,19078,44531,5993,24441,44878,44863,18237,44764,17009,16935,18719,18446,44711,44858,18301,3,36472,28313,28530,44867,17237,45567,45180,13425,44640,17771,14622,22509,18648,18185,17601,5388,18286,17848,45518,44685,13922,18427,24411,34194,17114,44674,19057,31354,45043,43800,18172,44669,45229,17335,3883,13988,44848,39676,5259,45072,45346,18650,45516,45286,44865,5410,17657,18042,37057,44739)
Unknown column 'np.person' in 'where clause'