500 Server Error

Error:Call to a member function num_rows() on bool
Errno:0
File:work_model
Line:49