where: sql.join(whereClauses, sql.raw(' AND ')) // I'm not sure if sql.placeholder or anything would handle this SQL object, or if I can just convert this SQL to a string, I can't find clear documentation on it
where: whereClauses.reduce((a, b) => a ? sql`${a} AND ${b}` : b, null)) // Still would be SQL object, so same issue
where: sql.join(whereClauses, sql.raw(' AND ')) // I'm not sure if sql.placeholder or anything would handle this SQL object, or if I can just convert this SQL to a string, I can't find clear documentation on it
where: whereClauses.reduce((a, b) => a ? sql`${a} AND ${b}` : b, null)) // Still would be SQL object, so same issue