Use bySQL instead of where method