When i change the ValueKey to anything other than 0 it works fine.
Steps to reproduce the Bug
Add where clause to a dynamic get with check equal = 0.
Which Joomla version are you compiling in?
5.3
Which PHP version are you compiling in?
8.3
Which Joomla versions are you targeting?
5
Which PHP version are you targeting?
8.3
Which Web server is JCB running on?
litespeed
Which Relational Database is JCB running on?
10.11
Which OS is JCB running on?
almalinux 9
Which JCB version are you using?
5.1.2 beta 2
Where in JCB did this issue occur?
Dynamic Get(admin_view)
On which browsers did you encounter the issue?
Firefox
Additional Comments
No response
### What Happened?
Hi,
I have a query like the image below:

But this is the generated code:

When i change the ValueKey to anything other than 0 it works fine.
### Steps to reproduce the Bug
Add where clause to a dynamic get with check equal = 0.
### Which Joomla version are you compiling in?
5.3
### Which PHP version are you compiling in?
8.3
### Which Joomla versions are you targeting?
5
### Which PHP version are you targeting?
8.3
### Which Web server is JCB running on?
litespeed
### Which Relational Database is JCB running on?
10.11
### Which OS is JCB running on?
almalinux 9
### Which JCB version are you using?
5.1.2 beta 2
### Where in JCB did this issue occur?
Dynamic Get(admin_view)
### On which browsers did you encounter the issue?
Firefox
### Additional Comments
_No response_
if (empty($whe['table_key']) || trim($whe['value_key']) == "")
it solves my issue of course.
The issue is here:
https://git.vdm.dev/joomla/Component-Builder/src/commit/c53260c6c7097334d896aec7c0ebfcd3dbda9b41/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Dynamicget/QueryWhere.php#L92
When i change the line to something like this:
```
if (empty($whe['table_key']) || trim($whe['value_key']) == "")
```
it solves my issue of course.
I can confirm that this issue has been fixed with the [Release of v5.1.2-beta3](https://git.vdm.dev/joomla/Component-Builder/commit/c0675818f7557eba8890385036b68569ff327df4).
In my Dynamic Get:

In the JCB Generated Code:

This issue can be closed.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What Happened?
Hi,
I have a query like the image below:
But this is the generated code:
When i change the ValueKey to anything other than 0 it works fine.
Steps to reproduce the Bug
Add where clause to a dynamic get with check equal = 0.
Which Joomla version are you compiling in?
5.3
Which PHP version are you compiling in?
8.3
Which Joomla versions are you targeting?
5
Which PHP version are you targeting?
8.3
Which Web server is JCB running on?
litespeed
Which Relational Database is JCB running on?
10.11
Which OS is JCB running on?
almalinux 9
Which JCB version are you using?
5.1.2 beta 2
Where in JCB did this issue occur?
Dynamic Get(admin_view)
On which browsers did you encounter the issue?
Firefox
Additional Comments
No response
The issue is here:
c53260c6c7/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/Dynamicget/QueryWhere.php (L92)When i change the line to something like this:
it solves my issue of course.
I can confirm that this issue has been fixed with the Release of v5.1.2-beta3.
In my Dynamic Get:

In the JCB Generated Code:

This issue can be closed.