theozebua / oze-framework-core

Just a simple mvc framework for beginners.
MIT License
4 stars 1 forks source link

Query builder error #27

Closed theozebua closed 1 year ago

theozebua commented 1 year ago

Everything is working fine, until I used the select() method like this code below:

(new User)->select(['name', 'email'])->get();

This is the error message:

Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* FROM users' at line 1

theozebua commented 1 year ago

Fixed on ea38b93